1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/dsa/hirschmann
Uwe Kleine-König beb8592d04 net: dsa: hirschmann: 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>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-09-20 10:25:57 +01:00
..
hellcreek.c net: dsa: hirschmann: Convert to platform remove callback returning void 2023-09-20 10:25:57 +01:00
hellcreek.h net: dsa: use capital "OR" for multiple licenses in SPDX 2023-08-24 12:02:53 -07:00
hellcreek_hwtstamp.c net: dsa: hellcreek: Replace bogus comment 2023-08-02 12:10:35 -07:00
hellcreek_hwtstamp.h net: dsa: no longer clone skb in core driver 2021-04-27 14:10:15 -07:00
hellcreek_ptp.c net: dsa: Explicitly include correct DT includes 2023-07-26 21:54:16 -07:00
hellcreek_ptp.h net: dsa: hellcreek: Add PTP status LEDs 2020-11-05 14:04:50 -08:00
Kconfig net: dsa: hellcreek: Add missing TAPRIO dependency 2021-01-29 21:02:31 -08:00
Makefile net: dsa: hellcreek: Add support for hardware timestamping 2020-11-05 14:04:49 -08:00