linux/drivers/net/ethernet/freescale
Uwe Kleine-König ead29c5e08 net: fs_enet: 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 (mostly) ignored
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.

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230710071946.3470249-6-u.kleine-koenig@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-07-11 20:24:33 -07:00
..
dpaa net: dpaa: Convert to platform remove callback returning void 2023-07-11 20:24:32 -07:00
dpaa2 ARM: SoC drivers for 6.5 2023-06-29 15:22:19 -07:00
enetc net: enetc: use vmalloc_array and vcalloc 2023-06-27 09:30:23 -07:00
fman net: fman: Convert to platform remove callback returning void 2023-07-11 20:24:33 -07:00
fs_enet net: fs_enet: Convert to platform remove callback returning void 2023-07-11 20:24:33 -07:00
fec.h net: fec: make use of MDIO C45 quirk 2023-04-05 18:58:30 -07:00
fec_main.c net: fec: Convert to platform remove callback returning void 2023-07-11 20:24:33 -07:00
fec_mpc52xx.c net: fec: Convert to platform remove callback returning void 2023-07-11 20:24:33 -07:00
fec_mpc52xx.h
fec_mpc52xx_phy.c net: fec: Convert to platform remove callback returning void 2023-07-11 20:24:33 -07:00
fec_ptp.c ptp: convert remaining drivers to adjfine interface 2022-11-11 10:58:39 +00:00
fsl_pq_mdio.c
gianfar.c net: Use of_property_read_bool() for boolean properties 2023-03-16 17:41:28 +00:00
gianfar.h
gianfar_ethtool.c
Kconfig net: fec: allow to build without PAGE_POOL_STATS 2023-06-20 12:11:59 -07:00
Makefile
ucc_geth.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
ucc_geth.h
ucc_geth_ethtool.c
xgmac_mdio.c net: phy: Remove probe_capabilities 2023-01-19 16:23:19 +01:00