media: i2c: os04a10: Fix lockdep warning

[    4.433265] WARNING: CPU: 4 PID: 1 at drivers/media/v4l2-core/v4l2-ctrls-api.c:874 __v4l2_ctrl_s_ctrl+0x68/0x8c
...
[    4.443578] Call trace:
[    4.443800]  __v4l2_ctrl_s_ctrl+0x68/0x8c
[    4.444154]  os04a10_probe+0x468/0x8d4
[    4.444488]  i2c_device_probe+0x31c/0x350

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Id99cea0ff6a6fed9856a37c0caf2771124882c1c
This commit is contained in:
Tao Huang
2024-05-10 11:16:28 +08:00
parent ab482114ee
commit 90eeed27ac

View File

@@ -2521,7 +2521,7 @@ static int os04a10_initialize_controls(struct os04a10 *os04a10)
0, PIXEL_RATE_WITH_648M,
1, dst_pixel_rate);
__v4l2_ctrl_s_ctrl(os04a10->link_freq, dst_link_freq);
v4l2_ctrl_s_ctrl(os04a10->link_freq, dst_link_freq);
h_blank = mode->hts_def - mode->width;
os04a10->hblank = v4l2_ctrl_new_std(handler, NULL, V4L2_CID_HBLANK,