media: ov5670: Add support for flash and lens devices
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 25 Sep 2017 09:51:25 +0000 (05:51 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 31 Oct 2017 18:06:45 +0000 (14:06 -0400)
Parse async sub-devices related to the sensor by switching the async
sub-device registration function.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/ov5670.c

index a65469f88e365f3a2e4bf981a167ade5129e90bf..9f9196568eb863327dde07e61177469623436b1c 100644 (file)
@@ -2529,7 +2529,7 @@ static int ov5670_probe(struct i2c_client *client)
        }
 
        /* Async register for subdev */
-       ret = v4l2_async_register_subdev(&ov5670->sd);
+       ret = v4l2_async_register_subdev_sensor_common(&ov5670->sd);
        if (ret < 0) {
                err_msg = "v4l2_async_register_subdev() error";
                goto error_entity_cleanup;