142eb4c03e0dcc1bd0cfd831bde2e1813ad2f56c
[openwrt/staging/blogic.git] /
1 From de9e04eba5f804c464fdfd4c21eadaf22c285156 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Wed, 16 Mar 2022 12:15:41 +0000
4 Subject: [PATCH] media: i2c: ov5647: Use
5 v4l2_async_register_subdev_sensor for lens binding
6
7 v4l2_async_register_subdev doesn't bind in lens or flash drivers,
8 but v4l2_async_register_subdev_sensor does.
9 Switch to using v4l2_async_register_subdev_sensor.
10
11 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
12 ---
13 drivers/media/i2c/ov5647.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 --- a/drivers/media/i2c/ov5647.c
17 +++ b/drivers/media/i2c/ov5647.c
18 @@ -1558,7 +1558,7 @@ static int ov5647_probe(struct i2c_clien
19 if (ret < 0)
20 goto power_off;
21
22 - ret = v4l2_async_register_subdev(sd);
23 + ret = v4l2_async_register_subdev_sensor(sd);
24 if (ret < 0)
25 goto power_off;
26