linux/drivers/pinctrl/qcom
Uwe Kleine-König 22ee670a8a pinctrl: qcom/msm: 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().

To convert all those qcom pinctrl drivers, make msm_pinctrl_remove()
return void (instead of zero) and use .remove_new in all drivers.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20231009162510.335208-3-u.kleine-koenig@pengutronix.de
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-10-10 15:47:49 +02:00
..
Kconfig pinctrl: qcom: Introduce SM6115 LPI pinctrl driver 2023-08-07 10:51:45 +02:00
Kconfig.msm pinctrl: qcom: organize main SoC drivers in new Kconfig.msm 2023-06-09 09:10:13 +02:00
Makefile pinctrl: qcom: Introduce SM6115 LPI pinctrl driver 2023-08-07 10:51:45 +02:00
pinctrl-apq8064.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-apq8084.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-ipq4019.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-ipq5018.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-ipq5332.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-ipq6018.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-ipq8064.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-ipq8074.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-ipq9574.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-lpass-lpi.c pinctrl: qcom/lpi: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-lpass-lpi.h pinctrl: qcom/lpi: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-mdm9607.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-mdm9615.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8x74.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8226.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8660.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8909.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8916.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8953.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8960.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8976.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8994.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8996.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8998.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm.h pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-qcm2290.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-qcs404.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-qdf2xxx.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-qdu1000.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sa8775p.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sc7180.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sc7280-lpass-lpi.c pinctrl: qcom/lpi: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sc7280.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sc8180x.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sc8280xp-lpass-lpi.c pinctrl: qcom/lpi: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sc8280xp.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sdm660.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sdm670.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sdm845.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sdx55.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sdx65.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sdx75.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm6115-lpass-lpi.c pinctrl: qcom/lpi: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm6115.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm6125.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm6350.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm6375.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm7150.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm8150.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm8250-lpass-lpi.c pinctrl: qcom/lpi: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm8250.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm8350-lpass-lpi.c pinctrl: qcom/lpi: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm8350.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm8450-lpass-lpi.c pinctrl: qcom/lpi: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm8450.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm8550-lpass-lpi.c pinctrl: qcom/lpi: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm8550.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-spmi-gpio.c pinctrl: qcom: spmi-gpio: Convert to platform remove callback returning void 2023-10-10 15:42:37 +02:00
pinctrl-spmi-mpp.c pinctrl: qcom: spmi-mpp: Convert to platform remove callback returning void 2023-10-10 15:43:03 +02:00
pinctrl-ssbi-gpio.c pinctrl: qcom: ssbi-gpio: Convert to platform remove callback returning void 2023-10-10 15:43:31 +02:00
pinctrl-ssbi-mpp.c pinctrl: qcom: ssbi-mpp: Convert to platform remove callback returning void 2023-10-10 15:43:56 +02:00