From: Sakari Ailus Date: Mon, 25 Sep 2017 09:50:16 +0000 (-0400) Subject: media: ov13858: Add support for flash and lens devices X-Git-Tag: v4.15-rc1~91^2~28 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2e8a9fbb79508261703835dd4977014249c9e18f;p=users%2Fwilly%2Flinux.git media: ov13858: 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 Acked-by: Hans Verkuil Reviewed-by: Sebastian Reichel Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/ov13858.c b/drivers/media/i2c/ov13858.c index fdce2befed02..bf7d06f3f21a 100644 --- a/drivers/media/i2c/ov13858.c +++ b/drivers/media/i2c/ov13858.c @@ -1761,7 +1761,7 @@ static int ov13858_probe(struct i2c_client *client, goto error_handler_free; } - ret = v4l2_async_register_subdev(&ov13858->sd); + ret = v4l2_async_register_subdev_sensor_common(&ov13858->sd); if (ret < 0) goto error_media_entity;