summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-07-18 15:14:02 +0300
committerGeorgi Djakov <djakov@kernel.org>2022-08-16 16:37:36 +0300
commit7ec26b8dcc5c770a06a7e7ca2e1c888e2115bf0b (patch)
tree221c1c275e75686065fa337b4420b17a0c0fc450 /drivers
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868 (diff)
downloadlinux-7ec26b8dcc5c770a06a7e7ca2e1c888e2115bf0b.tar.xz
interconnect: imx: 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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20220718121409.171773-2-u.kleine-koenig@pengutronix.de Signed-off-by: Georgi Djakov <djakov@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/interconnect/imx/imx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/interconnect/imx/imx.c b/drivers/interconnect/imx/imx.c
index 48ffd59953bf..6d9f107ff227 100644
--- a/drivers/interconnect/imx/imx.c
+++ b/drivers/interconnect/imx/imx.c
@@ -330,7 +330,9 @@ int imx_icc_unregister(struct platform_device *pdev)
imx_icc_unregister_nodes(&imx_provider->provider);
- return icc_provider_del(&imx_provider->provider);
+ icc_provider_del(&imx_provider->provider);
+
+ return 0;
}
EXPORT_SYMBOL_GPL(imx_icc_unregister);