mailbox/omap: Handle if CONFIG_PM is disabled
authorBrandon Maier <brandon.maier@rockwellcollins.com>
Sun, 17 Nov 2019 20:36:49 +0000 (14:36 -0600)
committerJassi Brar <jaswinder.singh@linaro.org>
Wed, 27 Nov 2019 04:44:53 +0000 (22:44 -0600)
If CONFIG_PM is disabled, pm_runtime_put_sync() returns -ENOSYS.

Signed-off-by: Brandon Maier <brandon.maier@rockwellcollins.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/omap-mailbox.c

index a3cd635..5978a35 100644 (file)
@@ -868,7 +868,7 @@ static int omap_mbox_probe(struct platform_device *pdev)
        dev_info(mdev->dev, "omap mailbox rev 0x%x\n", l);
 
        ret = pm_runtime_put_sync(mdev->dev);
-       if (ret < 0)
+       if (ret < 0 && ret != -ENOSYS)
                goto unregister;
 
        devm_kfree(&pdev->dev, finfoblk);