public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Cc: "Christophe JAILLET" <christophe.jaillet@wanadoo.fr>,
	"Jacopo Mondi" <jacopo+renesas@jmondi.org>,
	"Kieran Bingham" <kieran.bingham+renesas@ideasonboard.com>,
	"Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>,
	"Mauro Carvalho Chehab" <mchehab@kernel.org>,
	"Sakari Ailus" <sakari.ailus@linux.intel.com>,
	linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org,
	linux-media@vger.kernel.org
Subject: Re: [PATCH] media: i2c: rdacm2: Remove an incorrect fwnode_handle_put() call
Date: Mon, 28 Aug 2023 13:57:23 +0300	[thread overview]
Message-ID: <20230828105723.GF14596@pendragon.ideasonboard.com> (raw)
In-Reply-To: <zijwh5kcrfsg4q4pmxtkzia7tdpg4wnau53npe2y2xe4j7n7wy@zqwigtmyftu3>

On Mon, Aug 28, 2023 at 09:48:10AM +0200, Jacopo Mondi wrote:
> Hi Christophe
> 
> On Sat, Aug 26, 2023 at 10:05:06AM +0200, Christophe JAILLET wrote:
> > The commit in Fixes has removed an fwnode_handle_put() call in the error
> > handling path of the probe.
> >
> > Remove the same call from the remove function.
> >
> > Fixes: 1029939b3782 ("media: v4l: async: Simplify async sub-device fwnode matching")
> > Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> 
> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>

The subject line should read "rdacm21", not "rdacm2". with that fixed,

Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>

> > ---
> > /!\   This patch is highly speculative. Review with care.   /!\
> >
> > If it is correct, it is likely that other similar issue lurk in commit
> > 1029939b3782. I've not looked in detail and my cocci script did not
> > trigger on them but drivers/media/i2c/max9286.c also looks like a
> > similar candidate.
> 
> I think the call to  fwnode_handle_put(priv->sd.fwnode) in
> max9286_v4l2_unregister() can indeed be removed, yes!

I agree.

> > ---
> >  drivers/media/i2c/rdacm21.c | 1 -
> >  1 file changed, 1 deletion(-)
> >
> > diff --git a/drivers/media/i2c/rdacm21.c b/drivers/media/i2c/rdacm21.c
> > index a36a709243fd..3e22df36354f 100644
> > --- a/drivers/media/i2c/rdacm21.c
> > +++ b/drivers/media/i2c/rdacm21.c
> > @@ -608,7 +608,6 @@ static void rdacm21_remove(struct i2c_client *client)
> >  	v4l2_async_unregister_subdev(&dev->sd);
> >  	v4l2_ctrl_handler_free(&dev->ctrls);
> >  	i2c_unregister_device(dev->isp);
> > -	fwnode_handle_put(dev->sd.fwnode);
> >  }
> >
> >  static const struct of_device_id rdacm21_of_ids[] = {

-- 
Regards,

Laurent Pinchart

  reply	other threads:[~2023-08-28 10:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-26  8:05 [PATCH] media: i2c: rdacm2: Remove an incorrect fwnode_handle_put() call Christophe JAILLET
2023-08-28  7:48 ` Jacopo Mondi
2023-08-28 10:57   ` Laurent Pinchart [this message]
2023-08-28 11:16     ` Laurent Pinchart
2023-08-29 20:42       ` Christophe JAILLET

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230828105723.GF14596@pendragon.ideasonboard.com \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=christophe.jaillet@wanadoo.fr \
    --cc=jacopo+renesas@jmondi.org \
    --cc=jacopo.mondi@ideasonboard.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=kieran.bingham+renesas@ideasonboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=niklas.soderlund+renesas@ragnatech.se \
    --cc=sakari.ailus@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox