summaryrefslogtreecommitdiffstats
path: root/drivers/soc/qcom/llcc-qcom.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-09-25 11:55:09 +0200
committerBjorn Andersson <andersson@kernel.org>2023-10-02 20:30:00 +0200
commitdd714c568ed4e6f79017be45077de71e9908af03 (patch)
treea3b666b1291af948d3ff31ffb08f9875b9c1d08a /drivers/soc/qcom/llcc-qcom.c
parentfirmware: qcom_scm: use 64-bit calling convention only when client is 64-bit (diff)
downloadlinux-dd714c568ed4e6f79017be45077de71e9908af03.tar.xz
linux-dd714c568ed4e6f79017be45077de71e9908af03.zip
soc: qcom: icc-bwmon: 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> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Konrad Dybcio <konrad.dybcio@linaro.org> Link: https://lore.kernel.org/r/20230925095532.1984344-19-u.kleine-koenig@pengutronix.de Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'drivers/soc/qcom/llcc-qcom.c')
0 files changed, 0 insertions, 0 deletions