linux/drivers/media/platform/nxp
Uwe Kleine-König e992ee7eb5 media: nxp: imx8-isi: 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 ignored (apart
from emitting a warning) 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. Eventually after all drivers
are converted, .remove_new() will be renamed to .remove().

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>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2024-02-28 16:00:32 +01:00
..
dw100 media: dw100: Convert to platform remove callback returning void 2023-04-11 16:59:15 +02:00
imx8-isi media: nxp: imx8-isi: Convert to platform remove callback returning void 2024-02-28 16:00:32 +01:00
imx-jpeg media: imx-jpeg: Support for negotiating bytesperline with client 2024-02-16 11:46:32 +01:00
imx7-media-csi.c media: videobuf2: core: Rename min_buffers_needed field in vb2_queue 2023-12-13 17:31:27 +01:00
imx8mq-mipi-csi2.c media: v4l2-subdev: Rename .init_cfg() operation to .init_state() 2023-12-04 10:37:47 +01:00
imx-mipi-csis.c media: imx-mipi-csis: Drop extra clock enable at probe() 2023-12-09 07:39:31 +01:00
imx-pxp.c media: Explicitly include correct DT includes 2023-07-19 12:57:51 +02:00
imx-pxp.h
Kconfig media: imx: Unstage the imx8mq-mipi-csi2 driver 2023-07-25 09:24:30 +02:00
Makefile media: imx: Unstage the imx8mq-mipi-csi2 driver 2023-07-25 09:24:30 +02:00
mx2_emmaprp.c media: mx2_emmaprp: Convert to platform remove callback returning void 2023-04-11 16:59:16 +02:00