interconnect: icc-rpm: Ignore return value of icc_provider_del() in .remove()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 18 Jul 2022 12:14:03 +0000 (14:14 +0200)
committerGeorgi Djakov <djakov@kernel.org>
Tue, 16 Aug 2022 13:37:55 +0000 (16:37 +0300)
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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220718121409.171773-3-u.kleine-koenig@pengutronix.de
Signed-off-by: Georgi Djakov <djakov@kernel.org>
drivers/interconnect/qcom/icc-rpm.c

index 7f6a70e..39e43b9 100644 (file)
@@ -563,6 +563,8 @@ int qnoc_remove(struct platform_device *pdev)
 
        icc_nodes_remove(&qp->provider);
        clk_bulk_disable_unprepare(qp->num_clks, qp->bus_clks);
-       return icc_provider_del(&qp->provider);
+       icc_provider_del(&qp->provider);
+
+       return 0;
 }
 EXPORT_SYMBOL(qnoc_remove);