]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: ov5640: Add support for flash and lens devices
authorLuca Weiss <luca@z3ntu.xyz>
Fri, 21 Jun 2019 17:20:25 +0000 (14:20 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 15 Aug 2019 11:05:57 +0000 (08:05 -0300)
Parse async sub-devices related to the sensor by switching the async
sub-device registration function.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov5640.c

index a0229dfe1983d09e861b312988ab90547c90ae3d..500d9bbff10b5038cd4350432402db58e94c11d8 100644 (file)
@@ -3054,7 +3054,7 @@ static int ov5640_probe(struct i2c_client *client)
        if (ret)
                goto entity_cleanup;
 
-       ret = v4l2_async_register_subdev(&sensor->sd);
+       ret = v4l2_async_register_subdev_sensor_common(&sensor->sd);
        if (ret)
                goto free_ctrls;