linux-stable/drivers/firmware/imx
Uwe Kleine-König 303cbf2a30 firmware: imx-dsp: 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/f4cc1ffe30b837d5eab96f2924f51999dfa9f671.1703693980.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-01-04 17:01:14 +01:00
..
Kconfig pmdomain: imx: Move Kconfig options to the pmdomain subsystem 2023-10-04 23:40:36 +02:00
Makefile genpd: imx: relocate scu-pd under genpd 2023-08-17 11:33:54 +02:00
imx-dsp.c firmware: imx-dsp: Convert to platform remove callback returning void 2024-01-04 17:01:14 +01:00
imx-scu-irq.c ARM: SoC cleanups for 6.6 2023-08-30 16:49:40 -07:00
imx-scu-soc.c firmware: imx: scu: use soc name for soc_id 2023-08-11 22:13:58 +08:00
imx-scu.c ARM: SoC cleanups for 6.6 2023-08-30 16:49:40 -07:00
misc.c firmware: imx: Align imx_sc_msg_req_cpu_start to 4 2020-02-24 15:27:48 +08:00
rm.c firmware: imx: add get resource owner api 2022-02-12 14:07:36 +08:00