linux/drivers/interconnect
Uwe Kleine-König c8fd5a3734 interconnect: qcom: 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().

Several drivers use qcom_icc_rpmh_remove() as remove callback which
returns zero unconditionally. Make it return void and use .remove_new in
the drivers. There is no change in behaviour.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20231015135955.1537751-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Georgi Djakov <djakov@kernel.org>
2023-10-18 13:37:39 +03:00
..
imx interconnect: Explicitly include correct DT includes 2023-07-16 18:27:27 +03:00
qcom interconnect: qcom: Convert to platform remove callback returning void 2023-10-18 13:37:39 +03:00
samsung interconnect: exynos: drop redundant link destroy 2023-03-13 21:13:48 +02:00
bulk.c interconnect: add device managed bulk API 2022-07-04 16:14:29 +03:00
core.c Merge branch 'icc-debugfs' into icc-next 2023-08-22 21:05:09 +03:00
debugfs-client.c interconnect: Add debugfs test client 2023-08-22 21:04:50 +03:00
icc-clk.c interconnect: icc-clk: Annotate struct icc_clk_provider with __counted_by 2023-08-22 01:11:09 +03:00
internal.h Merge branch 'icc-debugfs' into icc-next 2023-08-22 21:05:09 +03:00
Kconfig interconnect: add clk-based icc provider support 2023-05-18 19:02:23 +03:00
Makefile interconnect: Add debugfs test client 2023-08-22 21:04:50 +03:00
trace.h interconnect: Add basic tracepoints 2019-12-16 09:25:23 +02:00