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>
This commit is contained in:
Uwe Kleine-König 2022-07-18 14:14:02 +02:00 committed by Georgi Djakov
parent 568035b01c
commit 7ec26b8dcc
1 changed files with 3 additions and 1 deletions

View File

@ -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);