kernel-aes67/drivers/atm
Uwe Kleine-König c12264d3fd atm: fore200e: 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() will be 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: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240306212344.97985-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-03-07 20:36:32 -08:00
..
.gitignore
Kconfig
Makefile
adummy.c
atmtcp.c net: fill in MODULE_DESCRIPTION()s for ATM 2024-01-05 08:04:23 -08:00
eni.c net: fill in MODULE_DESCRIPTION()s for ATM 2024-01-05 08:04:23 -08:00
eni.h
fore200e.c atm: fore200e: Convert to platform remove callback returning void 2024-03-07 20:36:32 -08:00
fore200e.h
he.c
he.h
idt77105.c net: fill in MODULE_DESCRIPTION()s for ATM 2024-01-05 08:04:23 -08:00
idt77105.h
idt77252.c atm: idt77252: fix a memleak in open_card_ubr0 2024-02-03 12:46:13 +00:00
idt77252.h
idt77252_tables.h
iphase.c net: fill in MODULE_DESCRIPTION()s for ATM 2024-01-05 08:04:23 -08:00
iphase.h
lanai.c
midway.h
nicstar.c net: fill in MODULE_DESCRIPTION()s for ATM 2024-01-05 08:04:23 -08:00
nicstar.h
nicstarmac.c
nicstarmac.copyright
solos-attrlist.c
solos-pci.c atm: solos-pci: Fix potential deadlock on &tx_queue_lock 2023-12-09 21:17:45 +00:00
suni.c net: fill in MODULE_DESCRIPTION()s for ATM 2024-01-05 08:04:23 -08:00
suni.h
tonga.h
zeprom.h