[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <yelspf4hfmmj3lnk3exyc6tm2lrsqlet623q2s5zrm2unba6nw@43ewuqdzckdg>
Date: Fri, 19 Apr 2024 22:43:39 +0300
From: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
To: Shresth Prasad <shresthprasad7@...il.com>
Cc: daniel.thompson@...aro.org, deller@....de,
dri-devel@...ts.freedesktop.org, javier.carrasco.cruz@...il.com, jingoohan1@...il.com,
julia.lawall@...ia.fr, lee@...nel.org, linux-fbdev@...r.kernel.org,
linux-kernel@...r.kernel.org, skhan@...uxfoundation.org
Subject: Re: [PATCH][next] drivers: video: Simplify device_node cleanup using
__free
On Sat, Apr 20, 2024 at 12:22:41AM +0530, Shresth Prasad wrote:
>
> > Please fix the subject line to be "backlight: <driver>: ...". I came
> > very close to deleting this patch without reading it ;-) .
>
> Really sorry about that, I'll fix it.
>
> > Do we need to get dev->of_node at all? The device, which we are
> > borrowing, already owns a reference to the node so I don't see
> > any point in this function taking an extra one.
> >
> > So why not simply make this:
> >
> > struct device_node *np = dev->of_node;
>
> Looking at it again, I'm not sure why the call to `of_node_put` is there in the first place. I think removing it will be fine.
>
> I'll fix both of these issues and send a patch v2.
Just a stupid quesiton: on which platform was this patch tested?
--
With best wishes
Dmitry
Powered by blists - more mailing lists