mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
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:
committed by
Dom Cobley
parent
de52722b31
commit
b348a4b78b
@@ -1566,7 +1566,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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user