drm/panel-edp: Convert to platform remove callback returning void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 30 May 2023 07:42:16 +0000 (09:42 +0200)
committerDouglas Anderson <dianders@chromium.org>
Wed, 31 May 2023 02:32:04 +0000 (19:32 -0700)
commit72a597aed1d9eb9ce21f68e4284ef3598d67cda9
tree70c83bc67ad00c1ef1f3a63f9338695c5fe7cb42
parent332af828ce78f9c49c65ff35b9fe171060c9d045
drm/panel-edp: 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.

panel_edp_remove() always returned zero, so convert it to return void
without any loss and then just drop the return from
panel_edp_platform_remove().

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230530074216.2195962-1-u.kleine-koenig@pengutronix.de
drivers/gpu/drm/panel/panel-edp.c