From: Brandon Maier Date: Sun, 17 Nov 2019 20:36:49 +0000 (-0600) Subject: mailbox/omap: Handle if CONFIG_PM is disabled X-Git-Tag: for-linus-20191205~32^2~6 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=0434d3f4525af32bc29f858f71300351041f552d;p=linux-block.git mailbox/omap: Handle if CONFIG_PM is disabled If CONFIG_PM is disabled, pm_runtime_put_sync() returns -ENOSYS. Signed-off-by: Brandon Maier Signed-off-by: Jassi Brar --- 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);