media: atomisp: gc0310: Switch to using the sub-device state lock
authorHans de Goede <hansg@kernel.org>
Sat, 17 May 2025 11:40:58 +0000 (13:40 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 8 Jul 2025 06:43:31 +0000 (08:43 +0200)
commit1e29696182f68b88cf2e459cc928eecc5770b459
tree84d89b7548ec2a8f2da56a91dc5ff282fe2a71bb
parent889740337f29c12f7eb32c281869654cfe3e32b5
media: atomisp: gc0310: 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: Hans de Goede <hansg@kernel.org>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20250517114106.43494-16-hansg@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/i2c/atomisp-gc0310.c