1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/dsa/b53
Uwe Kleine-König c306171d69 net: dsa: b53: 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 these drivers 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: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-09-20 10:25:57 +01:00
..
b53_common.c net: dsa: remove legacy_pre_march2020 from drivers 2023-07-18 09:47:09 +02:00
b53_mdio.c net: dsa: Explicitly include correct DT includes 2023-07-26 21:54:16 -07:00
b53_mmap.c net: dsa: b53: Convert to platform remove callback returning void 2023-09-20 10:25:57 +01:00
b53_priv.h net: dsa: b53: mdio: add support for BCM53134 2023-03-27 08:29:54 +01:00
b53_regs.h net: dsa: b53: add BCM63268 RGMII configuration 2023-03-22 21:38:04 -07:00
b53_serdes.c net: dsa: use capital "OR" for multiple licenses in SPDX 2023-08-24 12:02:53 -07:00
b53_serdes.h net: dsa: use capital "OR" for multiple licenses in SPDX 2023-08-24 12:02:53 -07:00
b53_spi.c net: dsa: b53: remove unnecessary spi_set_drvdata() 2022-07-06 19:49:59 -07:00
b53_srab.c net: dsa: b53: Convert to platform remove callback returning void 2023-09-20 10:25:57 +01:00
Kconfig net: dsa: modularize DSA_TAG_PROTO_NONE 2022-11-22 20:41:45 -08:00
Makefile net: dsa: b53: Add SerDes support 2018-09-06 07:48:34 -07:00