mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
FROMLIST: thermal: rockchip: disable thermal->clk in err case
Disable thermal->clk when enabling pclk fails in resume routine. Change-Id: I7d8780be04891bf4cddf1ba970eae2a2f14ec7ac Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Reviewed-by: Heiko Stuebner <heiko@sntech.de> Reviewed-by: Caesar Wang <wxt@rock-chips.com> Signed-off-by: Caesar Wang <wxt@rock-chips.com> (am from https://patchwork.kernel.org/patch/8867151/)
This commit is contained in:
committed by
Gerrit Code Review
parent
268399dd65
commit
e90650e85b
@@ -1154,8 +1154,10 @@ static int __maybe_unused rockchip_thermal_resume(struct device *dev)
|
||||
return error;
|
||||
|
||||
error = clk_enable(thermal->pclk);
|
||||
if (error)
|
||||
if (error) {
|
||||
clk_disable(thermal->clk);
|
||||
return error;
|
||||
}
|
||||
|
||||
rockchip_thermal_reset_controller(thermal->reset);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user