linux/drivers/media/i2c/s5c73m3
Ricardo Ribalda 334af4c52e media: i2c: s5c73m3: Move clk_prepare to its own function
Smatch is very confused by a clk_prepare_enable() being called in an
error-path. Fix this warning by moving the clk_prepare_enable() to its
own function.

drivers/media/i2c/s5c73m3/s5c73m3-core.c:1425 __s5c73m3_power_off() warn: 'state->clock' from clk_prepare_enable() not released on lines: 1425.

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2024-08-31 09:40:43 +02:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
s5c73m3-core.c media: i2c: s5c73m3: Move clk_prepare to its own function 2024-08-31 09:40:43 +02:00
s5c73m3-ctrls.c media: i2c: s5c73m3: remove support for platform data 2023-02-06 08:57:12 +01:00
s5c73m3-spi.c media: s5c73m3: Drop empty spi_driver remove callback 2021-11-30 12:07:06 +01:00
s5c73m3.h media: i2c: s5c73m3: remove support for platform data 2023-02-06 08:57:12 +01:00