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>
This commit is contained in:
Brandon Maier 2019-11-17 14:36:49 -06:00 коммит произвёл Jassi Brar
Родитель af42d3466b
Коммит 0434d3f452
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);