1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/media/platform/nxp/imx8-isi
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
..
imx8-isi-core.c media: nxp: imx8-isi: Convert to platform remove callback returning void 2024-02-28 16:00:32 +01:00
imx8-isi-core.h media: nxp: imx8-isi: Add ISI support for i.MX93 2023-08-10 07:58:38 +02:00
imx8-isi-crossbar.c media: nxp: imx8-isi: Mark all crossbar sink pads as MUST_CONNECT 2024-02-05 14:29:35 +01:00
imx8-isi-debug.c media: nxp: imx8-isi-debug: Add missing 36-Bit DMA registers to debugfs output 2023-12-09 07:40:23 +01:00
imx8-isi-gasket.c media: nxp: imx8-isi: Add ISI support for i.MX93 2023-08-10 07:58:38 +02:00
imx8-isi-hw.c media: nxp: imx8-isi: Factor out a variable 2024-02-05 14:29:35 +01:00
imx8-isi-m2m.c media: nxp: Add i.MX8 ISI driver 2023-04-16 07:35:06 +01:00
imx8-isi-pipe.c media: v4l2-subdev: Rename .init_cfg() operation to .init_state() 2023-12-04 10:37:47 +01:00
imx8-isi-regs.h media: nxp: Add i.MX8 ISI driver 2023-04-16 07:35:06 +01:00
imx8-isi-video.c media: videobuf2: core: Rename min_buffers_needed field in vb2_queue 2023-12-13 17:31:27 +01:00
Kconfig media: nxp: Add i.MX8 ISI driver 2023-04-16 07:35:06 +01:00
Makefile media: nxp: imx8-isi: Move i.MX8 gasket configuration to an ops structure 2023-08-10 07:58:38 +02:00