linux/drivers/net/ethernet/marvell
Uwe Kleine-König fee02f498c net: ethernet: marvell: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-09-20 09:06:39 +01:00
..
mvpp2 net: ethernet: marvell: Convert to platform remove callback returning void 2023-09-20 09:06:39 +01:00
octeon_ep octeon_ep: restructured interrupt handlers 2023-09-19 11:29:42 +02:00
octeontx2 octeontx2-pf: Enable PTP PPS output support 2023-09-15 10:35:07 +01:00
prestera Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-08-10 14:10:53 -07:00
Kconfig net: ethernet: Add missing depends on MDIO_DEVRES 2023-04-12 20:38:48 -07:00
Makefile octeon_ep: Add driver framework and device initialization 2022-04-13 12:56:32 +01:00
mv643xx_eth.c net: ethernet: marvell: Convert to platform remove callback returning void 2023-09-20 09:06:39 +01:00
mvmdio.c net: ethernet: marvell: Convert to platform remove callback returning void 2023-09-20 09:06:39 +01:00
mvneta.c net: ethernet: marvell: Convert to platform remove callback returning void 2023-09-20 09:06:39 +01:00
mvneta_bm.c net: ethernet: marvell: Convert to platform remove callback returning void 2023-09-20 09:06:39 +01:00
mvneta_bm.h
pxa168_eth.c net: ethernet: marvell: Convert to platform remove callback returning void 2023-09-20 09:06:39 +01:00
skge.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
skge.h
sky2.c sky2: Remove redundant NULL check for debugfs_create_dir 2023-08-18 15:31:46 -07:00
sky2.h