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 net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
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 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hd64572.c
hd64572.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
hdlc.c
hdlc_cisco.c
hdlc_fr.c
hdlc_ppp.c
hdlc_raw.c
hdlc_raw_eth.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
hdlc_x25.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
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 net: lapbether: only support ethernet devices 2023-06-15 08:55:22 +01:00
Makefile net: wan: Add support for QMC HDLC 2024-03-11 09:36:11 +00:00
n2.c
pc300too.c
pci200syn.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
slic_ds26522.c net: fill in MODULE_DESCRIPTION()s for ds26522 module 2024-01-11 16:16:08 -08:00
slic_ds26522.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
wanxl.c
wanxl.h
wanxlfw.inc_shipped
wanxlfw.S