[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1746917.OUUFyOy2vj@diego>
Date: Tue, 01 Mar 2016 12:48:30 +0100
From: Heiko Stübner <heiko@...ech.de>
To: Shawn Lin <shawn.lin@...k-chips.com>
Cc: Zhang Rui <rui.zhang@...el.com>,
Eduardo Valentin <edubezval@...il.com>,
Caesar Wang <wxt@...k-chips.com>, linux-pm@...r.kernel.org,
linux-rockchip@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] thermal: rockchip: disable thermal->clk in err case
Am Montag, 15. Februar 2016, 10:27:22 schrieb Shawn Lin:
> Disable thermal->clk when enabling pclk fails in
> resume routine.
>
> Signed-off-by: Shawn Lin <shawn.lin@...k-chips.com>
Reviewed-by: Heiko Stuebner <heiko@...ech.de>
> ---
>
> drivers/thermal/rockchip_thermal.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/thermal/rockchip_thermal.c
> b/drivers/thermal/rockchip_thermal.c index 9787e8a..b54f6db 100644
> --- a/drivers/thermal/rockchip_thermal.c
> +++ b/drivers/thermal/rockchip_thermal.c
> @@ -656,8 +656,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);
Powered by blists - more mailing lists