mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
a8759bd4c4
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. As fsl_mc_bus_remove() has the same type now as fsl_mc_bus_shutdown() and the only thing the latter does is to call the former, use fsl_mc_bus_remove() directly as .shutdown() callback. Link: https://lore.kernel.org/r/20231103230001.3652259-4-u.kleine-koenig@pengutronix.de Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> |
||
---|---|---|
.. | ||
dpbp.c | ||
dpcon.c | ||
dpmcp.c | ||
dprc-driver.c | ||
dprc.c | ||
fsl-mc-allocator.c | ||
fsl-mc-bus.c | ||
fsl-mc-msi.c | ||
fsl-mc-private.h | ||
fsl-mc-uapi.c | ||
Kconfig | ||
Makefile | ||
mc-io.c | ||
mc-sys.c | ||
obj-api.c |