linux/drivers/net/ethernet/sunplus
Uwe Kleine-König ede778ed3e net: ethernet: sunplus: 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() is 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: David S. Miller <davem@davemloft.net>
2023-09-20 09:06:41 +01:00
..
Kconfig net: ethernet: Fix unmet direct dependencies detected for NVMEM_SUNPLUS_OCOTP 2022-05-16 18:02:21 -07:00
Makefile
spl2sw_define.h
spl2sw_desc.c
spl2sw_desc.h
spl2sw_driver.c net: ethernet: sunplus: Convert to platform remove callback returning void 2023-09-20 09:06:41 +01:00
spl2sw_int.c net: ethernet: SP7021: fix a use after free of skb->len 2022-05-19 17:46:56 -07:00
spl2sw_int.h
spl2sw_mac.c
spl2sw_mac.h
spl2sw_mdio.c net: Remove C45 check in C22 only MDIO bus drivers 2023-01-20 18:12:45 -08:00
spl2sw_mdio.h
spl2sw_phy.c ethernet: remove superfluous clearing of phydev 2023-03-22 20:47:27 -07:00
spl2sw_phy.h
spl2sw_register.h