OpenCloudOS-Kernel/arch/arm/common
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
..
Kconfig ARM/dma-mapping: remove dmabounce 2022-07-07 18:18:56 +02:00
Makefile ARM: 9263/1: use .arch directives instead of assembler command line flags 2022-11-08 18:36:17 +00:00
bL_switcher.c sched,bL_switcher: Convert to sched_set_fifo*() 2020-06-15 14:10:20 +02:00
bL_switcher_dummy_if.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
firmware.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
krait-l2-accessors.c ARM: Add Krait L2 register accessor functions 2018-10-17 13:14:33 -07:00
locomo.c ARM: Convert to platform remove callback returning void 2023-03-17 16:03:57 +01:00
mcpm_entry.c docs: arm: convert docs to ReST and rename to *.rst 2019-07-15 09:20:24 -03:00
mcpm_head.S ARM: 9263/1: use .arch directives instead of assembler command line flags 2022-11-08 18:36:17 +00:00
mcpm_platsmp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
sa1111.c ARM: Convert to platform remove callback returning void 2023-03-17 16:03:57 +01:00
scoop.c ARM: Convert to platform remove callback returning void 2023-03-17 16:03:57 +01:00
secure_cntvoff.S ARM: smp: Add initialization of CNTVOFF 2018-05-08 14:50:42 +02:00
sharpsl_param.c ARM: sharpsl_param: work around -Wstringop-overread warning 2021-10-05 15:44:56 +02:00
vlock.S ARM: 9263/1: use .arch directives instead of assembler command line flags 2022-11-08 18:36:17 +00:00
vlock.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00