remoteproc: k3-dsp: Convert to platform remove callback returning void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 23 Nov 2023 21:17:01 +0000 (22:17 +0100)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Thu, 30 Nov 2023 16:41:44 +0000 (09:41 -0700)
commit3f978d9889a2531e48d97cef7f5126f4104ee69c
tree33cc5a64f1bb5d895fb608c4dd171e5683c03ff5
parentcfd0b5c4fd1d23d1c68f704dcd74c1dbdfd7c144
remoteproc: k3-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().

There is no change in behaviour as .remove() already returned zero
unconditionally.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20231123211657.518181-8-u.kleine-koenig@pengutronix.de
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/ti_k3_dsp_remoteproc.c