linux/arch/powerpc/platforms
Uwe Kleine-König b1cd248f42 powerpc: gpio_mdio: 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>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/8a5ac8044578694879e919322dbd46f140b64950.1708529736.git.u.kleine-koenig@pengutronix.de
2024-02-22 21:55:32 +11:00
..
4xx powerpc: Use NULL instead of 0 for null pointers 2023-10-19 17:12:47 +11:00
8xx powerpc: Untangle fixmap.h and pgtable.h and mmu.h 2023-10-19 17:12:44 +11:00
40x powerpc updates for 6.4 2023-04-28 16:24:32 -07:00
44x powerpc/44x: select I2C for CURRITUCK 2023-12-01 21:15:33 +11:00
52xx powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
82xx powerpc/82xx: Select FSL_SOC 2023-09-18 12:23:48 +10:00
83xx powerpc/mpc83xx: Use wait_event_freezable() for freezable kthread 2023-12-21 22:10:16 +11:00
85xx powerpc: sgy_cts1000: Convert to platform remove callback returning void 2024-02-22 21:55:32 +11:00
86xx powerpc/86xx: Drop unused CONFIG_MPC8610 2023-12-29 15:23:00 +11:00
512x powerpc/512x: Fix missing prototype warnings 2023-11-30 13:25:27 +11:00
amigaone powerpc: Make generic_calibrate_decr() the default 2023-03-16 08:56:48 +11:00
book3s powerpc/vas: Limit open window failure messages in log bufffer 2023-10-20 17:10:03 +11:00
cell dentry: switch the lists of children to hlist 2023-11-25 02:32:13 -05:00
chrp powerpc: Make generic_calibrate_decr() the default 2023-03-16 08:56:48 +11:00
embedded6xx powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
maple powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
microwatt powerpc: Make generic_calibrate_decr() the default 2023-03-16 08:56:48 +11:00
pasemi powerpc: gpio_mdio: Convert to platform remove callback returning void 2024-02-22 21:55:32 +11:00
powermac powerpc: Remove duplicate/unnecessary ifdefs 2024-02-21 15:15:40 +11:00
powernv TTY/Serial changes for 6.8-rc1 2024-01-18 11:37:24 -08:00
ps3 powerpc/ps3: Make real stack frames for LV1 hcalls 2024-02-21 23:14:52 +11:00
pseries powerpc: ibmebus: make ibmebus_bus_type const 2024-02-15 00:14:06 +11:00
fsl_uli1575.c powerpc/fsl_uli1575: Mark uli_exclude_device() as static 2023-04-20 10:20:50 +10:00
Kconfig powerpc/82xx: Remove CONFIG_8260 and CONFIG_8272 2023-08-18 17:03:14 +10:00
Kconfig.cputype powerpc updates for 6.6 2023-08-31 12:43:10 -07:00
Makefile