linux/drivers/sbus/char
Uwe Kleine-König 024a5e6b96 sbus: uctrl: 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>
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Link: https://lore.kernel.org/r/59b07175ca590031ee28c11c5941384ab3603799.1709591118.git.u.kleine-koenig@pengutronix.de
2024-03-08 21:26:23 +01:00
..
bbc_envctrl.c sbus: Explicitly include correct DT includes 2023-08-28 13:36:24 -05:00
bbc_i2c.c sbus: bbc_i2c: Convert to platform remove callback returning void 2024-03-08 21:26:23 +01:00
bbc_i2c.h sbus: Add prototype for bbc_envctrl_init and bbc_envctrl_cleanup to header 2024-03-08 21:26:23 +01:00
display7seg.c sbus: display7seg: Convert to platform remove callback returning void 2024-03-08 21:26:23 +01:00
envctrl.c sbus: envctrl: Convert to platform remove callback returning void 2024-03-08 21:26:23 +01:00
flash.c sbus: flash: Convert to platform remove callback returning void 2024-03-08 21:26:23 +01:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile Remove jsflash driver 2018-05-15 13:56:16 -06:00
max1617.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
openprom.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 61 2019-05-24 17:36:45 +02:00
oradax.c oradax: make 'cl' a static const structure 2023-06-23 10:27:02 +02:00
uctrl.c sbus: uctrl: Convert to platform remove callback returning void 2024-03-08 21:26:23 +01:00