Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1446716
| From | Sean Paul <seanpaul@google.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH -next] drm/rockchip: analogix_dp: add missing clk_disable_unprepare() on error |
| Date | 2016-07-19 22:40 +0200 |
| Message-ID | <rWJY5-fG-9@gated-at.bofh.it> (permalink) |
| References | <rWBxw-3r9-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Jul 19, 2016 at 7:32 AM, Wei Yongjun <weiyj_lk@163.com> wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> Add the missing clk_disable_unprepare() before return in the
> error handling case.
>
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.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;
> }
>
>
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH -next] drm/rockchip: analogix_dp: add missing clk_disable_unprepare() on error Wei Yongjun <weiyj_lk@163.com> - 2016-07-19 13:40 +0200 Re: [PATCH -next] drm/rockchip: analogix_dp: add missing clk_disable_unprepare() on error Sean Paul <seanpaul@google.com> - 2016-07-19 22:40 +0200
csiph-web