提交 d9512696 编写于 作者: R ran jianping 提交者: Jassi Brar

mailbox: omap: using pm_runtime_resume_and_get to simplify the code

Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.
Reported-by: NZeal Robot <zealci@zte.com.cn>
Signed-off-by: Nran jianping <ran.jianping@zte.com.cn>
Signed-off-by: NJassi Brar <jaswinder.singh@linaro.org>
上级 504ff5b0
...@@ -856,11 +856,9 @@ static int omap_mbox_probe(struct platform_device *pdev) ...@@ -856,11 +856,9 @@ static int omap_mbox_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, mdev); platform_set_drvdata(pdev, mdev);
pm_runtime_enable(mdev->dev); pm_runtime_enable(mdev->dev);
ret = pm_runtime_get_sync(mdev->dev); ret = pm_runtime_resume_and_get(mdev->dev);
if (ret < 0) { if (ret < 0)
pm_runtime_put_noidle(mdev->dev);
goto unregister; goto unregister;
}
/* /*
* just print the raw revision register, the format is not * just print the raw revision register, the format is not
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册