Re: [PATCH] drm/sprd: Remove of_node_put() in sprd_crtc_init()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



+ Kevin

On Thu, 7 Jul 2022 at 11:25, Liang He <windhl@xxxxxxx> 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@xxxxxxx>
> ---
>  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
>



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux