OpenCloudOS-Kernel/drivers/media/platform/sunxi
Uwe Kleine-König 17d32ccde1 media: sun8i_rotate: 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:19 +02:00
..
sun4i-csi media: sun4i_csi: Convert to platform remove callback returning void 2023-04-11 16:59:18 +02:00
sun6i-csi media: sun6i_csi: Convert to platform remove callback returning void 2023-04-11 16:59:18 +02:00
sun6i-mipi-csi2 media: sun6i_mipi_csi2: Convert to platform remove callback returning void 2023-04-11 16:59:19 +02:00
sun8i-a83t-mipi-csi2 media: sun8i_a83t_mipi_csi2: Convert to platform remove callback returning void 2023-04-11 16:59:19 +02:00
sun8i-di media: sun8i-di: Convert to platform remove callback returning void 2023-04-11 16:59:19 +02:00
sun8i-rotate media: sun8i_rotate: Convert to platform remove callback returning void 2023-04-11 16:59:19 +02:00
Kconfig media: sunxi: Add support for the A83T MIPI CSI-2 controller 2022-07-08 15:06:26 +01:00
Makefile media: sunxi: Add support for the A83T MIPI CSI-2 controller 2022-07-08 15:06:26 +01:00