linux/drivers/net/wan
Uwe Kleine-König 07409cf728 net: wan: fsl_qmc_hdlc: 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>
Acked-by: Herve Codina <herve.codina@bootlin.com>
Link: https://lore.kernel.org/r/20240409091203.39062-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-04-10 19:35:50 -07:00
..
framer net: wan: framer/pef2256: Convert to platform remove callback returning void 2024-03-11 14:58:20 -07:00
.gitignore
c101.c
farsync.c
farsync.h
fsl_qmc_hdlc.c net: wan: fsl_qmc_hdlc: Convert to platform remove callback returning void 2024-04-10 19:35:50 -07:00
fsl_ucc_hdlc.c net: wan/fsl_ucc_hdlc: Convert to platform remove callback returning void 2023-12-05 19:54:44 -08:00
fsl_ucc_hdlc.h
hd64570.c
hd64570.h
hd64572.c
hd64572.h
hdlc.c
hdlc_cisco.c
hdlc_fr.c
hdlc_ppp.c
hdlc_raw.c
hdlc_raw_eth.c
hdlc_x25.c
ixp4xx_hss.c net: wan/ixp4xx_hss: Convert to platform remove callback returning void 2023-12-05 19:54:44 -08:00
Kconfig net: handle HAS_IOPORT dependencies 2024-04-08 11:56:56 +01:00
lapbether.c
Makefile net: wan: Add support for QMC HDLC 2024-03-11 09:36:11 +00:00
n2.c
pc300too.c
pci200syn.c
slic_ds26522.c net: fill in MODULE_DESCRIPTION()s for ds26522 module 2024-01-11 16:16:08 -08:00
slic_ds26522.h
wanxl.c
wanxl.h
wanxlfw.inc_shipped
wanxlfw.S