linux/drivers/power/reset
Uwe Kleine-König 054eb23775 power: reset: at91-sama5d2_shdwc: 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: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Link: https://lore.kernel.org/r/20231105094712.3706799-4-u.kleine-koenig@pengutronix.de
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
2023-11-15 23:15:40 +01:00
..
arm-versatile-reboot.c power/reset: arm-versatile: Fix refcount leak in versatile_reboot_probe 2022-06-09 21:08:38 +02:00
as3722-poweroff.c power: reset: as3722-poweroff: Convert to platform remove callback returning void 2023-11-15 23:15:38 +01:00
at91-poweroff.c power: reset: at91-poweroff: Convert to platform remove callback returning void 2023-11-15 23:15:38 +01:00
at91-reset.c power: reset: at91-reset: Convert to platform remove callback returning void 2023-11-15 23:15:40 +01:00
at91-sama5d2_shdwc.c power: reset: at91-sama5d2_shdwc: Convert to platform remove callback returning void 2023-11-15 23:15:40 +01:00
atc260x-poweroff.c power: reset: atc260x-poweroff: Convert to platform remove callback returning void 2023-11-15 23:15:38 +01:00
axxia-reset.c power: reset: axxia-reset: use builtin_platform_driver() to simplify code 2023-09-12 20:25:54 +02:00
brcm-kona-reset.c power: reset: brcm-kona: Convert to devm_platform_ioremap_resource() 2023-07-19 23:28:59 +02:00
brcmstb-reboot.c treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_30.RULE (part 2) 2022-06-10 14:51:35 +02:00
gemini-poweroff.c power: reset: gemini-poweroff: Convert to devm_platform_ioremap_resource() 2023-07-19 23:28:59 +02:00
gpio-poweroff.c power: reset: gpio-poweroff: make sys handler priority configurable 2023-10-13 02:22:36 +02:00
gpio-restart.c power: Explicitly include correct DT includes 2023-07-19 22:47:03 +02:00
hisi-reboot.c power: reset: hisi-reboot: add missing MODULE_DEVICE_TABLE 2021-04-09 13:50:01 +02:00
Kconfig Power Supply Fixes for 6.6 cycle 2023-10-21 00:55:43 +02:00
keystone-reset.c power: Explicitly include correct DT includes 2023-07-19 22:47:03 +02:00
linkstation-poweroff.c power: reset: linkstation-poweroff: add new device 2021-08-13 19:16:41 +02:00
ltc2952-poweroff.c power: reset: ltc2952-poweroff: Convert to platform remove callback returning void 2023-11-15 23:15:38 +01:00
Makefile power: reset: oxnas-restart: remove obsolete restart driver 2023-07-20 00:29:18 +02:00
msm-poweroff.c power: reset: msm: use builtin_platform_driver() to simplify code 2023-09-12 20:25:54 +02:00
mt6323-poweroff.c power: reset: mt6323-poweroff: Convert to platform remove callback returning void 2023-11-15 23:15:38 +01:00
nvmem-reboot-mode.c power: reset: nvmem-reboot-mode: quiet some device deferrals 2023-09-12 20:15:28 +02:00
ocelot-reset.c power: reset: ocelot: Convert to devm_platform_ioremap_resource() 2023-07-19 23:31:49 +02:00
odroid-go-ultra-poweroff.c power: Explicitly include correct DT includes 2023-07-19 22:47:03 +02:00
piix4-poweroff.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
pwr-mlxbf.c power: reset: pwr-mlxbf: support graceful reboot instead of emergency reset 2023-11-15 23:04:48 +01:00
qcom-pon.c power: reset: qcom-pon: add support for pm8941-pon 2023-06-09 21:18:17 +02:00
qnap-poweroff.c power: reset: qnap-poweroff: Convert to platform remove callback returning void 2023-11-15 23:15:39 +01:00
reboot-mode.c power: reset: reboot-mode: Fix author email format 2019-09-02 21:05:59 +02:00
regulator-poweroff.c power: reset: regulator-poweroff: Convert to platform remove callback returning void 2023-11-15 23:15:39 +01:00
restart-poweroff.c power: reset: restart-poweroff: Convert to platform remove callback returning void 2023-11-15 23:15:39 +01:00
rmobile-reset.c power: reset: rmobile-reset: Convert to platform remove callback returning void 2023-11-15 23:15:39 +01:00
sc27xx-poweroff.c power supply and reset changes for the v5.7 series 2020-04-05 13:47:57 -07:00
st-poweroff.c power: reset: st-poweroff: use builtin_platform_driver() to simplify code 2023-09-12 20:25:54 +02:00
syscon-poweroff.c power: reset: syscon-poweroff: Convert to platform remove callback returning void 2023-11-15 23:15:39 +01:00
syscon-reboot-mode.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
syscon-reboot.c power: Explicitly include correct DT includes 2023-07-19 22:47:03 +02:00
tps65086-restart.c power: reset: tps65086-restart: Convert to platform remove callback returning void 2023-11-15 23:15:40 +01:00
vexpress-poweroff.c power: reset: vexpress: Use device_get_match_data() 2023-10-21 00:57:55 +02:00
xgene-reboot.c power: reset: xgene-reboot: use builtin_platform_driver() to simplify code 2023-09-12 20:25:54 +02:00