mirror_ubuntu-kernels/drivers/net/ethernet/freescale/fman
Uwe Kleine-König 4875b2a362 net: fman: 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.

Acked-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
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-5-u.kleine-koenig@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-07-11 20:24:33 -07:00
..
fman_dtsec.c net: phylink: pass neg_mode into phylink_mii_c22_pcs_config() 2023-06-22 19:41:01 -07:00
fman_dtsec.h net: fman: Pass params directly to mac init 2022-09-05 14:27:39 +01:00
fman_keygen.c net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_keygen.h net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_mac.h net: dpaa: Convert to phylink 2022-10-19 13:25:09 +01:00
fman_memac.c net: fman_memac: use pcs-lynx's check for fwnode availability 2023-06-08 19:19:50 -07:00
fman_memac.h net: fman: Pass params directly to mac init 2022-09-05 14:27:39 +01:00
fman_muram.c net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_muram.h net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_port.c net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_port.h net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_sp.c net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_sp.h net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_tgec.c net: remove explicit phylink_generic_validate() references 2022-11-07 17:54:57 -08:00
fman_tgec.h net: fman: Pass params directly to mac init 2022-09-05 14:27:39 +01:00
fman.c net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman.h net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
Kconfig net: fman: remove reference to non-existing config PCS 2022-11-18 19:19:58 -08:00
mac.c net: fman: Convert to platform remove callback returning void 2023-07-11 20:24:33 -07:00
mac.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-10-24 13:44:11 -07:00
Makefile Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-11-04 09:26:51 +09:00