提交 f221bd78 编写于 作者: U Uwe Kleine-König 提交者: Georgi Djakov

interconnect: osm-l3: 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: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220718121409.171773-6-u.kleine-koenig@pengutronix.deSigned-off-by: NGeorgi Djakov <djakov@kernel.org>
上级 919d4e1a
...@@ -217,7 +217,9 @@ static int qcom_osm_l3_remove(struct platform_device *pdev) ...@@ -217,7 +217,9 @@ static int qcom_osm_l3_remove(struct platform_device *pdev)
struct qcom_osm_l3_icc_provider *qp = platform_get_drvdata(pdev); struct qcom_osm_l3_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 int qcom_osm_l3_probe(struct platform_device *pdev) static int qcom_osm_l3_probe(struct platform_device *pdev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册