Re: [PATCH] [media] imx: switch from V4L2 OF to V4L2 fwnode API

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

 



Hi Philipp,

Thanks for the patch!

On Thu, May 04, 2017 at 03:37:30PM +0200, Philipp Zabel wrote:
...
> @@ -194,11 +195,11 @@ static int imx_media_subdev_bound(struct v4l2_async_notifier *notifier,
>  				  struct v4l2_async_subdev *asd)
>  {
>  	struct imx_media_dev *imxmd = notifier2dev(notifier);
> +	struct device_node *np = to_of_node(dev_fwnode(sd->dev));

dev_fwnode(sd->dev) isn't necessarily the same as sd->fwnode. How about
to_of_node(sd->fwnode) instead?

I realised I had left both v4l2_subdev->of_node and v4l2_subdev->fwnode;
v4l2_subdev->of_node is unused. I'll remove it.

The other changes seem good to me.

>  	struct imx_media_subdev *imxsd;
>  	int ret = -EINVAL;
>  
> -	imxsd = imx_media_find_async_subdev(imxmd, sd->of_node,
> -					    dev_name(sd->dev));
> +	imxsd = imx_media_find_async_subdev(imxmd, np, dev_name(sd->dev));
>  	if (!imxsd)
>  		goto out;
>  

-- 
Kind regards,

Sakari Ailus
e-mail: sakari.ailus@xxxxxx	XMPP: sailus@xxxxxxxxxxxxxx



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux