aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/thermal/rockchip_thermal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c
index 1dbd8623c309..f4c4bcd7c6e4 100644
--- a/drivers/thermal/rockchip_thermal.c
+++ b/drivers/thermal/rockchip_thermal.c
@@ -979,8 +979,10 @@ static int __maybe_unused rockchip_thermal_resume(struct device *dev)
979 return error; 979 return error;
980 980
981 error = clk_enable(thermal->pclk); 981 error = clk_enable(thermal->pclk);
982 if (error) 982 if (error) {
983 clk_disable(thermal->clk);
983 return error; 984 return error;
985 }
984 986
985 rockchip_thermal_reset_controller(thermal->reset); 987 rockchip_thermal_reset_controller(thermal->reset);
986 988