Skip to content

Commit

Permalink
remoteproc: using pm_runtime_resume_and_get instead of pm_runtime_get…
Browse files Browse the repository at this point in the history
…_sync

Using pm_runtime_resume_and_get is more appropriate
for simplifing code

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220411013656.2517150-1-chi.minghao@zte.com.cn
  • Loading branch information
Minghao Chi authored and Bjorn Andersson committed Jul 18, 2022
1 parent 3f52d11 commit 60349fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/remoteproc/keystone_remoteproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,10 +410,9 @@ static int keystone_rproc_probe(struct platform_device *pdev)

/* enable clock for accessing DSP internal memories */
pm_runtime_enable(dev);
ret = pm_runtime_get_sync(dev);
ret = pm_runtime_resume_and_get(dev);
if (ret < 0) {
dev_err(dev, "failed to enable clock, status = %d\n", ret);
pm_runtime_put_noidle(dev);
goto disable_rpm;
}

Expand Down

0 comments on commit 60349fd

Please sign in to comment.