OpenCloudOS-Kernel/drivers/media/platform/sunxi/sun4i-csi
Uwe Kleine-König a72b9869ec media: sun4i_csi: Convert to platform remove callback returning void
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2023-04-11 16:59:18 +02:00
..
Kconfig media: sun4i-csi: Add a Kconfig dependency on RESET_CONTROLLER 2022-09-24 11:21:44 +02:00
Makefile media: add SPDX headers on Kconfig and Makefile files 2020-04-14 10:29:05 +02:00
sun4i_csi.c media: sun4i_csi: Convert to platform remove callback returning void 2023-04-11 16:59:18 +02:00
sun4i_csi.h media: v4l2-fwnode: Move bus config structure to v4l2_mediabus.h 2022-01-28 15:52:41 +01:00
sun4i_dma.c media: sun4i-csi: Use CSI_INT_STA_REG name, fix typo in a comment 2023-02-06 08:41:59 +01:00
sun4i_v4l2.c media: v4l: ioctl: Set bus_info in v4l_querycap() 2022-04-24 08:07:08 +01:00