linux-stable/drivers/net/ethernet/sun
Uwe Kleine-König 8f4e45a013 net: ethernet: sun: 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:41 +01:00
..
cassini.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-05-18 14:39:34 -07:00
cassini.h ethernet/sun: fix repeated words in comments 2022-07-01 20:13:19 -07:00
Kconfig
ldmvsw.c ethernet: ldmvsw: mark ldmvsw_open() static 2023-08-11 18:24:02 -07:00
Makefile
niu.c net: ethernet: sun: Convert to platform remove callback returning void 2023-09-20 09:06:41 +01:00
niu.h
sunbmac.c net: ethernet: sun: Convert to platform remove callback returning void 2023-09-20 09:06:41 +01:00
sunbmac.h
sungem.c net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
sungem.h
sunhme.c net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
sunhme.h net: sunhme: Remove residual polling code 2023-03-27 08:41:56 +01:00
sunqe.c net: ethernet: sun: Convert to platform remove callback returning void 2023-09-20 09:06:41 +01:00
sunqe.h
sunvnet.c ethernet: sun: add check for the mdesc_grab() 2023-03-17 07:47:39 +00:00
sunvnet_common.c sunvnet: fix sparc64 build error after gso code split 2023-06-15 22:47:13 -07:00
sunvnet_common.h