summaryrefslogtreecommitdiff
path: root/drivers/mailbox/omap-mailbox.c
diff options
context:
space:
mode:
authorBrandon Maier <brandon.maier@rockwellcollins.com>2019-11-17 23:36:49 +0300
committerJassi Brar <jaswinder.singh@linaro.org>2019-11-27 07:44:53 +0300
commit0434d3f4525af32bc29f858f71300351041f552d (patch)
treed04965fb46950c24c6dd490d19df01b3c48576b0 /drivers/mailbox/omap-mailbox.c
parentaf42d3466bdc8f39806b26f593604fdc54140bcb (diff)
downloadlinux-0434d3f4525af32bc29f858f71300351041f552d.tar.xz
mailbox/omap: Handle if CONFIG_PM is disabled
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>
Diffstat (limited to 'drivers/mailbox/omap-mailbox.c')
-rw-r--r--drivers/mailbox/omap-mailbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mailbox/omap-mailbox.c b/drivers/mailbox/omap-mailbox.c
index a3cd63583cf7..5978a35aac6d 100644
--- a/drivers/mailbox/omap-mailbox.c
+++ b/drivers/mailbox/omap-mailbox.c
@@ -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);