mirror_ubuntu-kernels/drivers/gpu/drm/atmel-hlcdc
Uwe Kleine-König a118fc6e71 drm/atmel-hlcdc: 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: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230507162616.1368908-7-u.kleine-koenig@pengutronix.de
2023-06-08 09:04:10 -07:00
..
atmel_hlcdc_crtc.c drm: Remove linux/media-bus-format.h from drm_crtc.h 2022-07-05 21:15:13 +03:00
atmel_hlcdc_dc.c drm/atmel-hlcdc: Convert to platform remove callback returning void 2023-06-08 09:04:10 -07:00
atmel_hlcdc_dc.h drm/atmel: Use drm_atomic_helper_commit 2021-02-23 12:54:20 +01:00
atmel_hlcdc_output.c drm: Remove linux/fb.h from drm_crtc.h 2022-07-05 21:14:02 +03:00
atmel_hlcdc_plane.c drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
Kconfig drm/gem: rename GEM CMA helpers to GEM DMA helpers 2022-08-03 18:31:49 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00