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 <dave.stevenson@raspberrypi.com>
This commit is contained in:
Dave Stevenson
2022-03-16 12:15:41 +00:00
committed by Dom Cobley
parent 6e4a1432bd
commit e6b3891504

View File

@@ -1565,7 +1565,7 @@ static int ov5647_probe(struct i2c_client *client)
if (ret < 0) if (ret < 0)
goto power_off; goto power_off;
ret = v4l2_async_register_subdev(sd); ret = v4l2_async_register_subdev_sensor(sd);
if (ret < 0) if (ret < 0)
goto power_off; goto power_off;