Commit 1f511bb
media: i2c: og01a1b: Fix V4L2 subdevice data initialization on probe
[ Upstream commit 535b7f1 ]
It's necessary to finalize the camera sensor subdevice initialization on
driver probe and clean V4L2 subdevice data up on error paths and driver
removal.
The change fixes a previously reported by v4l2-compliance issue of
the failed VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT test:
fail: v4l2-test-controls.cpp(1104): subscribe event for control 'User Controls' failed
Fixes: 472377f ("media: Add a driver for the og01a1b camera sensor")
Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 6a0afc7 commit 1f511bb
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1042 | 1042 | | |
1043 | 1043 | | |
1044 | 1044 | | |
| 1045 | + | |
1045 | 1046 | | |
1046 | 1047 | | |
1047 | 1048 | | |
| |||
1153 | 1154 | | |
1154 | 1155 | | |
1155 | 1156 | | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
1156 | 1164 | | |
1157 | 1165 | | |
1158 | 1166 | | |
1159 | 1167 | | |
1160 | | - | |
| 1168 | + | |
1161 | 1169 | | |
1162 | 1170 | | |
1163 | 1171 | | |
| |||
1167 | 1175 | | |
1168 | 1176 | | |
1169 | 1177 | | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
1170 | 1181 | | |
1171 | 1182 | | |
1172 | 1183 | | |
| |||
0 commit comments