1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/omapdrm/dss
Uwe Kleine-König c2807ecb52 drm/omap: 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 the omap drm 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: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230507162616.1368908-35-u.kleine-koenig@pengutronix.de
2023-06-08 10:35:17 -07:00
..
base.c drm/omap: remove dispc_ops 2020-12-15 16:15:06 +02:00
dispc.c drm/omap: Convert to platform remove callback returning void 2023-06-08 10:35:17 -07:00
dispc.h drm: omapdrm: Replace HTTP links with HTTPS ones 2020-11-10 14:41:22 +02:00
dispc_coefs.c drm: omapdrm: Replace HTTP links with HTTPS ones 2020-11-10 14:41:22 +02:00
dpi.c drm/omap: drop unused owner field 2020-12-15 16:08:27 +02:00
dsi.c drm/omap: Convert to platform remove callback returning void 2023-06-08 10:35:17 -07:00
dsi.h drm/omap: dsi: allow DSI commands to be sent early 2020-12-15 16:17:32 +02:00
dss.c drm/omap: Convert to platform remove callback returning void 2023-06-08 10:35:17 -07:00
dss.h drm/omap: Add ovl checking funcs to dispc_ops 2021-12-08 10:04:38 +02:00
hdmi.h drm: omapdrm: Replace HTTP links with HTTPS ones 2020-11-10 14:41:22 +02:00
hdmi4.c drm/omap: Convert to platform remove callback returning void 2023-06-08 10:35:17 -07:00
hdmi4_cec.c drm/omapdrm: Convert to SPDX identifier 2021-11-10 13:51:25 +02:00
hdmi4_cec.h drm/omapdrm: Convert to SPDX identifier 2021-11-10 13:51:25 +02:00
hdmi4_core.c drm/omap: Make use of the helper function devm_platform_ioremap_resourcexxx() 2021-11-10 13:51:26 +02:00
hdmi4_core.h drm: omapdrm: Replace HTTP links with HTTPS ones 2020-11-10 14:41:22 +02:00
hdmi5.c drm/omap: Convert to platform remove callback returning void 2023-06-08 10:35:17 -07:00
hdmi5_core.c drm/omap: Make use of the helper function devm_platform_ioremap_resourcexxx() 2021-11-10 13:51:26 +02:00
hdmi5_core.h drm: omapdrm: Replace HTTP links with HTTPS ones 2020-11-10 14:41:22 +02:00
hdmi_common.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hdmi_phy.c drm/omap: Make use of the helper function devm_platform_ioremap_resourcexxx() 2021-11-10 13:51:26 +02:00
hdmi_pll.c drm/omap: Make use of the helper function devm_platform_ioremap_resourcexxx() 2021-11-10 13:51:26 +02:00
hdmi_wp.c drm: omapdrm: Replace HTTP links with HTTPS ones 2020-11-10 14:41:22 +02:00
omapdss.h drm/omap: Remove duplicate declaration 2021-03-26 09:23:25 +02:00
output.c drm/omap: remove dss_mgr_ops 2020-12-15 16:17:30 +02:00
pll.c drm/omap: pll: fix iteration loop check 2020-12-15 16:17:30 +02:00
sdi.c drm/omap: drop unused owner field 2020-12-15 16:08:27 +02:00
venc.c drm/omap: Convert to platform remove callback returning void 2023-06-08 10:35:17 -07:00
video-pll.c drm/omap: Make use of the helper function devm_platform_ioremap_resourcexxx() 2021-11-10 13:51:26 +02:00