summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2017-09-25 05:51:25 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-10-31 14:06:45 -0400
commita42e78da596b18319ebc447f60c22fd6ce32322b (patch)
tree4f3fa8d2425ab0d2e298cbeba8e9c9d34adf33e3 /drivers/media
parentd8932f38c10ffb4b604c97d0765b500e8964cbd1 (diff)
downloadop-kernel-dev-a42e78da596b18319ebc447f60c22fd6ce32322b.zip
op-kernel-dev-a42e78da596b18319ebc447f60c22fd6ce32322b.tar.gz
media: ov5670: Add support for flash and lens devices
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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/i2c/ov5670.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/ov5670.c b/drivers/media/i2c/ov5670.c
index a65469f..9f91965 100644
--- a/drivers/media/i2c/ov5670.c
+++ b/drivers/media/i2c/ov5670.c
@@ -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;
OpenPOWER on IntegriCloud