linux/drivers/net/ethernet/amd
Uwe Kleine-König 9ecae52f7d net: ethernet: amd: 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:37 +01:00
..
pds_core pds_core: add attempts to fix broken PCI 2023-09-18 09:28:22 +01:00
xgbe net: ethernet: amd: Convert to platform remove callback returning void 2023-09-20 09:06:37 +01:00
7990.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
7990.h
Kconfig pds_core: add AUXILIARY_BUS and NET_DEVLINK to Kconfig 2023-05-03 09:16:53 +01:00
Makefile pds_core: Kconfig and pds_core.rst 2023-04-21 08:29:14 +01:00
a2065.c net: amd: Unified the comparison between pointers and NULL to the same writing 2022-09-16 10:27:47 +01:00
a2065.h
amd8111e.c net: amd: Switch and case should be at the same indent 2022-09-16 10:27:47 +01:00
amd8111e.h net: amd: Correct spelling errors 2022-09-16 10:27:47 +01:00
ariadne.c net: amd: Unified the comparison between pointers and NULL to the same writing 2022-09-16 10:27:47 +01:00
ariadne.h
atarilance.c ethernet: atarilance: mark init function static 2023-08-11 18:24:02 -07:00
au1000_eth.c net: ethernet: amd: Convert to platform remove callback returning void 2023-09-20 09:06:37 +01:00
au1000_eth.h au1000_eth: stop using virt_to_bus() 2022-06-08 11:32:02 -07:00
declance.c amd: declance: use eth_hw_addr_set() 2022-01-25 09:00:53 -08:00
hplance.c amd: hplance: use eth_hw_addr_set() 2021-11-19 11:05:20 +00:00
hplance.h
lance.c net: isa: include net/Space.h 2023-05-17 21:27:30 -07:00
mvme147.c amd: mvme147: use eth_hw_addr_set() 2021-11-19 11:05:20 +00:00
nmclan_cs.c net: amd: Fix link leak when verifying config failed 2023-04-25 09:41:18 +01:00
pcnet32.c net: amd: Unified the comparison between pointers and NULL to the same writing 2022-09-16 10:27:47 +01:00
sun3lance.c net: amd: Unified the comparison between pointers and NULL to the same writing 2022-09-16 10:27:47 +01:00
sunlance.c net: ethernet: amd: Convert to platform remove callback returning void 2023-09-20 09:06:37 +01:00