提交 ab5b52f1 编写于 作者: S Shawn Lin 提交者: Eduardo Valentin

thermal: rockchip: disable thermal->clk in err case

Disable thermal->clk when enabling pclk fails in
resume routine.
Signed-off-by: NShawn Lin <shawn.lin@rock-chips.com>
Reviewed-by: NHeiko Stuebner <heiko@sntech.de>
Reviewed-by: NCaesar Wang <wxt@rock-chips.com>
Signed-off-by: NCaesar Wang <wxt@rock-chips.com>
Signed-off-by: NEduardo Valentin <edubezval@gmail.com>
上级 44cb6a7d
...@@ -979,8 +979,10 @@ static int __maybe_unused rockchip_thermal_resume(struct device *dev) ...@@ -979,8 +979,10 @@ static int __maybe_unused rockchip_thermal_resume(struct device *dev)
return error; return error;
error = clk_enable(thermal->pclk); error = clk_enable(thermal->pclk);
if (error) if (error) {
clk_disable(thermal->clk);
return error; return error;
}
rockchip_thermal_reset_controller(thermal->reset); rockchip_thermal_reset_controller(thermal->reset);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册