]> Git Repo - linux.git/commitdiff
hwspinlock: omap: Emit only one error message for errors in .remove()
authorUwe Kleine-König <[email protected]>
Tue, 14 Mar 2023 18:00:59 +0000 (19:00 +0100)
committerBjorn Andersson <[email protected]>
Sat, 15 Jul 2023 20:04:00 +0000 (13:04 -0700)
If a remove callback of a platform driver returns a non-zero value, the
driver core emits an error message, otherwise ignores the value and
completes unbinding the device.

As omap_hwspinlock_remove() already emits an error message, suppress the
core's error message by returning zero.

Signed-off-by: Uwe Kleine-König <[email protected]>
Acked-by: Baolin Wang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
drivers/hwspinlock/omap_hwspinlock.c

index dfe82952671b1584ade4c48c6864352fd211e468..a2538c67396f4408aeaa3512761ccd324b032fe7 100644 (file)
@@ -153,7 +153,7 @@ static int omap_hwspinlock_remove(struct platform_device *pdev)
        ret = hwspin_lock_unregister(bank);
        if (ret) {
                dev_err(&pdev->dev, "%s failed: %d\n", __func__, ret);
-               return ret;
+               return 0;
        }
 
        pm_runtime_disable(&pdev->dev);
This page took 0.045141 seconds and 4 git commands to generate.