drm/bridge: imx8mp-hdmi-pvi: Convert to platform remove callback returning void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 4 Mar 2024 09:05:56 +0000 (10:05 +0100)
committerRobert Foss <rfoss@kernel.org>
Wed, 10 Apr 2024 13:06:45 +0000 (15:06 +0200)
commit29b39672bc1d651010f7b61e106d51998f068aaf
treec293f08c4a7d3e314a731092440a3a45e13553d8
parentfb24c1396fe107e66dfa4948881760586bc8d93c
drm/bridge: imx8mp-hdmi-pvi: 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: Robert Foss <rfoss@kernel.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240304090555.716327-2-u.kleine-koenig@pengutronix.de
drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c