Commit 0434d3f4 authored by Brandon Maier's avatar Brandon Maier Committed by Jassi Brar
Browse files

mailbox/omap: Handle if CONFIG_PM is disabled



If CONFIG_PM is disabled, pm_runtime_put_sync() returns -ENOSYS.

Signed-off-by: default avatarBrandon Maier <brandon.maier@rockwellcollins.com>
Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
parent af42d346
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);