Commit fa80a299 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Georgi Djakov

interconnect: sm8450: Ignore return value of icc_provider_del() in .remove()

icc_provider_del() already emits an error message on failure. In this
case letting .remove() return the corresponding error code results in
another error message and the device is removed anyhow. (See
platform_remove().)

So ignore the return value of icc_provider_del() and return 0
unconditionally.

This is a preparation for making platform remove callbacks return void.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220718121409.171773-7-u.kleine-koenig@pengutronix.deSigned-off-by: default avatarGeorgi Djakov <djakov@kernel.org>
parent f221bd78
...@@ -1933,7 +1933,9 @@ static int qnoc_remove(struct platform_device *pdev) ...@@ -1933,7 +1933,9 @@ static int qnoc_remove(struct platform_device *pdev)
struct qcom_icc_provider *qp = platform_get_drvdata(pdev); struct qcom_icc_provider *qp = platform_get_drvdata(pdev);
icc_nodes_remove(&qp->provider); icc_nodes_remove(&qp->provider);
return icc_provider_del(&qp->provider); icc_provider_del(&qp->provider);
return 0;
} }
static const struct of_device_id qnoc_of_match[] = { static const struct of_device_id qnoc_of_match[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment