Skip to content

Commit 504ff5b

Browse files
ran jianpingJassiBrar
authored andcommitted
mailbox:imx: using pm_runtime_resume_and_get
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: Zeal Robot <[email protected]> Signed-off-by: ran jianping <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
1 parent 02b5c35 commit 504ff5b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/mailbox/imx-mailbox.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -830,11 +830,9 @@ static int imx_mu_probe(struct platform_device *pdev)
830830

831831
pm_runtime_enable(dev);
832832

833-
ret = pm_runtime_get_sync(dev);
834-
if (ret < 0) {
835-
pm_runtime_put_noidle(dev);
833+
ret = pm_runtime_resume_and_get(dev);
834+
if (ret < 0)
836835
goto disable_runtime_pm;
837-
}
838836

839837
ret = pm_runtime_put_sync(dev);
840838
if (ret < 0)

0 commit comments

Comments
 (0)