[PATCH] drm/sprd: Remove of_node_put() in sprd_crtc_init()
Chunyan Zhang
zhang.lyra at gmail.com
Fri Jul 8 09:25:28 UTC 2022
+ Kevin
On Thu, 7 Jul 2022 at 11:25, Liang He <windhl at 126.com> wrote:
>
> As the new reference created in 'dpu->base.port' will be escaped out,
> we need not to call of_node_put() again.
>
> Fixes: b07bcf34b6c9 ("drm/sprd: add Unisoc's drm display controller driver")
> Signed-off-by: Liang He <windhl at 126.com>
> ---
> drivers/gpu/drm/sprd/sprd_dpu.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/sprd/sprd_dpu.c b/drivers/gpu/drm/sprd/sprd_dpu.c
> index 1637203ea103..e1b70f989da5 100644
> --- a/drivers/gpu/drm/sprd/sprd_dpu.c
> +++ b/drivers/gpu/drm/sprd/sprd_dpu.c
> @@ -741,7 +741,6 @@ static struct sprd_dpu *sprd_crtc_init(struct drm_device *drm,
> return ERR_PTR(-EINVAL);
> }
> dpu->base.port = port;
> - of_node_put(port);
>
> return dpu;
> }
> --
> 2.25.1
>
More information about the dri-devel
mailing list