From: Dave Stevenson Date: Wed, 16 Mar 2022 12:15:41 +0000 (+0000) Subject: media: i2c: ov5647: Use v4l2_async_register_subdev_sensor for lens binding X-Git-Tag: accepted/tizen/unified/20230118.172025~756 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f7b065171fe81b87d5d014ee0e862b08e67b944;p=platform%2Fkernel%2Flinux-rpi.git media: i2c: ov5647: Use v4l2_async_register_subdev_sensor for lens binding v4l2_async_register_subdev doesn't bind in lens or flash drivers, but v4l2_async_register_subdev_sensor does. Switch to using v4l2_async_register_subdev_sensor. Signed-off-by: Dave Stevenson --- diff --git a/drivers/media/i2c/ov5647.c b/drivers/media/i2c/ov5647.c index 4912467..befdb53 100644 --- a/drivers/media/i2c/ov5647.c +++ b/drivers/media/i2c/ov5647.c @@ -1558,7 +1558,7 @@ static int ov5647_probe(struct i2c_client *client) if (ret < 0) goto power_off; - ret = v4l2_async_register_subdev(sd); + ret = v4l2_async_register_subdev_sensor(sd); if (ret < 0) goto power_off;