linux/arch/sh/drivers
Uwe Kleine-König 5019cd6114 sh: push-switch: 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: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Link: https://lore.kernel.org/r/20240306211947.97103-2-u.kleine-koenig@pengutronix.de
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
2024-05-02 12:02:22 +02:00
..
dma sh: dma: Remove unused functionality 2024-05-02 12:01:25 +02:00
pci sh: pci: Do PCI error check on own line 2023-10-10 16:36:26 -05:00
heartbeat.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
Kconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile sh: Remove superhyway bus support 2023-10-25 16:50:11 +02:00
platform_early.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
push-switch.c sh: push-switch: Convert to platform remove callback returning void 2024-05-02 12:02:22 +02:00