Skip to content

Commit 60349fd

Browse files
Minghao Chiandersson
authored andcommitted
remoteproc: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
Using pm_runtime_resume_and_get is more appropriate for simplifing code Reported-by: Zeal Robot <[email protected]> Signed-off-by: Minghao Chi <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 3f52d11 commit 60349fd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/remoteproc/keystone_remoteproc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,10 +410,9 @@ static int keystone_rproc_probe(struct platform_device *pdev)
410410

411411
/* enable clock for accessing DSP internal memories */
412412
pm_runtime_enable(dev);
413-
ret = pm_runtime_get_sync(dev);
413+
ret = pm_runtime_resume_and_get(dev);
414414
if (ret < 0) {
415415
dev_err(dev, "failed to enable clock, status = %d\n", ret);
416-
pm_runtime_put_noidle(dev);
417416
goto disable_rpm;
418417
}
419418

0 commit comments

Comments
 (0)