mirror of https://gitee.com/openkylin/linux.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 <brandon.maier@rockwellcollins.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
This commit is contained in:
parent
af42d3466b
commit
0434d3f452
|
@ -868,7 +868,7 @@ static int omap_mbox_probe(struct platform_device *pdev)
|
||||||
dev_info(mdev->dev, "omap mailbox rev 0x%x\n", l);
|
dev_info(mdev->dev, "omap mailbox rev 0x%x\n", l);
|
||||||
|
|
||||||
ret = pm_runtime_put_sync(mdev->dev);
|
ret = pm_runtime_put_sync(mdev->dev);
|
||||||
if (ret < 0)
|
if (ret < 0 && ret != -ENOSYS)
|
||||||
goto unregister;
|
goto unregister;
|
||||||
|
|
||||||
devm_kfree(&pdev->dev, finfoblk);
|
devm_kfree(&pdev->dev, finfoblk);
|
||||||
|
|
Loading…
Reference in New Issue