]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: i2c: ov5647: Switch to using the sub-device state lock
authorXiaolei Wang <xiaolei.wang@windriver.com>
Thu, 8 Jan 2026 05:21:58 +0000 (13:21 +0800)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Fri, 16 Jan 2026 13:08:52 +0000 (14:08 +0100)
commitebcb6cafd10fe601bd7e55f1ce07c17c62f877be
treecde33bd7943cbc925a7406ef21055aead83cf97b
parent4f66f36388d5668c215f107a4e1ce1a707251ff5
media: i2c: ov5647: Switch to using the sub-device state lock

Switch to using the sub-device state lock and properly call
v4l2_subdev_init_finalize() / v4l2_subdev_cleanup() on probe() /
remove().

Signed-off-by: Xiaolei Wang <xiaolei.wang@windriver.com>
Reviewed-by: Tarang Raval <tarang.raval@siliconsignals.io>
[Sakari Ailus: Remove now-redundant assignment of control handler lock.]
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/ov5647.c