OpenCloudOS-Kernel/arch/arm/mach-sa1100
Uwe Kleine-König 74a5b94b62
ARM: 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.

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Shawn Guo <shawnguo@kernel.org> # for imx/mmdc
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230314103225.2787101-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2023-03-17 16:03:57 +01:00
..
include/mach ARM: sa1100: remove unused board files 2023-01-12 10:53:12 +01:00
Kconfig ARM: sa1100: remove unused board files 2023-01-12 10:53:12 +01:00
Makefile ARM: sa1100: remove unused board files 2023-01-12 10:53:12 +01:00
assabet.c ARM: sa1100: remove irda references 2023-01-16 09:25:48 +01:00
clock.c ARM: sa1100: convert to common clock framework 2019-07-03 11:44:09 +01:00
collie.c ARM: sa1100: remove irda references 2023-01-16 09:25:48 +01:00
generic.c ARM: sa1100: remove irda references 2023-01-16 09:25:48 +01:00
generic.h ARM: sa1100: remove irda references 2023-01-16 09:25:48 +01:00
h3xxx.c ARM: SoC platform updates 2019-07-19 17:05:08 -07:00
h3600.c ARM: sa1100: remove irda references 2023-01-16 09:25:48 +01:00
jornada720.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
jornada720_ssp.c ARM: Convert to platform remove callback returning void 2023-03-17 16:03:57 +01:00
neponset.c ARM: Convert to platform remove callback returning void 2023-03-17 16:03:57 +01:00
pm.c ARM: 8641/1: treewide: Replace uses of virt_to_phys with __pa_symbol 2017-02-28 11:06:10 +00:00
sleep.S ARM: 7452/1: delay: allow timer-based delay implementation to be selected 2012-07-09 17:42:23 +01:00
ssp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00