Message ID | 20220715203652.89912-2-u.kleine-koenig@pengutronix.de |
---|---|
State | Superseded |
Headers | show |
Series | interconnect: Prepare making platform remove callbacks return void | expand |
diff --git a/drivers/interconnect/imx/imx.c b/drivers/interconnect/imx/imx.c index 249ca25d1d55..4c70530e3064 100644 --- a/drivers/interconnect/imx/imx.c +++ b/drivers/interconnect/imx/imx.c @@ -280,7 +280,9 @@ int imx_icc_unregister(struct platform_device *pdev) imx_icc_unregister_nodes(provider); - return icc_provider_del(provider); + icc_provider_del(provider); + + return 0; } EXPORT_SYMBOL_GPL(imx_icc_unregister);
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> --- drivers/interconnect/imx/imx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)