mirror_ubuntu-kernels/drivers/net/ethernet/freescale/dpaa
Uwe Kleine-König 9c3ddc44d0 net: dpaa: 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-3-u.kleine-koenig@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-07-11 20:24:32 -07:00
..
dpaa_eth_sysfs.c net: fman: Use physical address for userspace interfaces 2022-10-24 10:45:14 +01:00
dpaa_eth_trace.h net: dpaa: Convert to SPDX identifiers 2022-05-28 12:43:31 +01:00
dpaa_eth.c net: dpaa: Convert to platform remove callback returning void 2023-07-11 20:24:32 -07:00
dpaa_eth.h net: dpaa: Convert to SPDX identifiers 2022-05-28 12:43:31 +01:00
dpaa_ethtool.c net: dpaa: Convert to phylink 2022-10-19 13:25:09 +01:00
Kconfig net: dpaa: Convert to phylink 2022-10-19 13:25:09 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00