linux/drivers/gpu/drm/kmb
Uwe Kleine-König 8c67c9a4e4 drm/kmb: 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.

Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jyri Sarha <jyri.sarha@iki.fi>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20231102165640.3307820-29-u.kleine-koenig@pengutronix.de
2023-11-21 09:18:52 +01:00
..
Kconfig drm/gem: rename GEM CMA helpers to GEM DMA helpers 2022-08-03 18:31:49 +02:00
kmb_crtc.c drm/kmb: Remove unnecessary include statements for drm_crtc_helper.h 2023-01-18 09:25:31 +01:00
kmb_drv.c drm/kmb: Convert to platform remove callback returning void 2023-11-21 09:18:52 +01:00
kmb_drv.h drm/kmb: Disable change of plane parameters 2021-10-21 11:08:08 +02:00
kmb_dsi.c drm: Remove linux/fb.h from drm_crtc.h 2022-07-05 21:14:02 +03:00
kmb_dsi.h drm/kmb: Enable ADV bridge after modeset 2021-10-21 11:08:09 +02:00
kmb_plane.c drm/kmb: Remove unnecessary include statements for drm_crtc_helper.h 2023-01-18 09:25:31 +01:00
kmb_plane.h drm/kmb: Disable change of plane parameters 2021-10-21 11:08:08 +02:00
kmb_regs.h drm/kmb: Enable alpha blended second plane 2021-10-06 11:05:44 +02:00
Makefile drm/kmb: Build files for KeemBay Display driver 2020-11-05 19:20:38 +01:00