[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAOw6vbKT--+A=wFdx2=PT7FCYga-ArDSrw4ypFDmqqaiitHyPQ@mail.gmail.com>
Date: Tue, 19 Jul 2016 16:38:15 -0400
From: Sean Paul <seanpaul@...gle.com>
To: Wei Yongjun <weiyj_lk@....com>
Cc: Mark Yao <mark.yao@...k-chips.com>,
David Airlie <airlied@...ux.ie>,
Heiko Stuebner <heiko@...ech.de>,
Wei Yongjun <yongjun_wei@...ndmicro.com.cn>,
dri-devel <dri-devel@...ts.freedesktop.org>,
Linux ARM Kernel <linux-arm-kernel@...ts.infradead.org>,
linux-rockchip@...ts.infradead.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH -next] drm/rockchip: analogix_dp: add missing
clk_disable_unprepare() on error
On Tue, Jul 19, 2016 at 7:32 AM, Wei Yongjun <weiyj_lk@....com> wrote:
> From: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
>
> Add the missing clk_disable_unprepare() before return in the
> error handling case.
>
> Signed-off-by: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
Applied to drm-misc
> ---
> drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
> index e81e19a..89aadbf 100644
> --- a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
> +++ b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
> @@ -96,6 +96,7 @@ static int rockchip_dp_poweron(struct analogix_dp_plat_data *plat_data)
> ret = rockchip_dp_pre_init(dp);
> if (ret < 0) {
> dev_err(dp->dev, "failed to dp pre init %d\n", ret);
> + clk_disable_unprepare(dp->pclk);
> return ret;
> }
>
> @@ -272,6 +273,7 @@ static int rockchip_dp_init(struct rockchip_dp_device *dp)
> ret = rockchip_dp_pre_init(dp);
> if (ret < 0) {
> dev_err(dp->dev, "failed to pre init %d\n", ret);
> + clk_disable_unprepare(dp->pclk);
> return ret;
> }
>
>
Powered by blists - more mailing lists