linux-stable/drivers/platform/mellanox
Uwe Kleine-König e0489bb002
platform/mellanox: mlxreg-io: 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>
Link: https://lore.kernel.org/r/20230927081040.2198742-18-u.kleine-koenig@pengutronix.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2023-09-28 13:26:27 +03:00
..
Kconfig platform/mellanox: NVSW_SN2201 should depend on ACPI 2023-09-11 13:21:46 +02:00
Makefile platform/mellanox: Add support for new SN2201 system 2022-05-12 15:35:29 +02:00
mlxbf-bootctl.c platform/mellanox: mlxbf-bootctl: Convert to platform remove callback returning void 2023-09-28 13:26:18 +03:00
mlxbf-bootctl.h mlxbf-bootctl: Support sysfs entries for MFG fields 2023-08-23 17:31:27 +02:00
mlxbf-pmc.c platform/mellanox: mlxbf-pmc: Add support for BlueField-3 2023-09-13 13:42:29 +02:00
mlxbf-tmfifo-regs.h platform/mellanox: Add BlueField-3 support in the tmfifo driver 2022-11-16 08:48:19 +01:00
mlxbf-tmfifo.c platform/mellanox: mlxbf-tmfifo: Convert to platform remove callback returning void 2023-09-28 13:26:23 +03:00
mlxreg-hotplug.c platform/mellanox: mlxreg-hotplug: Convert to platform remove callback returning void 2023-09-28 13:26:25 +03:00
mlxreg-io.c platform/mellanox: mlxreg-io: Convert to platform remove callback returning void 2023-09-28 13:26:27 +03:00
mlxreg-lc.c platform/mellanox: mlxreg-lc: Make error handling flow consistent 2022-09-09 21:58:16 +02:00
nvsw-sn2201.c platform: mellanox: nvsw-sn2201: change fans i2c busses. 2023-08-23 17:31:30 +02:00