aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/remoteproc
diff options
context:
space:
mode:
authorMinghao Chi <chi.minghao@zte.com.cn>2022-04-11 01:36:56 +0000
committerBjorn Andersson <bjorn.andersson@linaro.org>2022-07-18 15:32:34 -0500
commit60349fd52ecbb8b14545ff25aba2f2e230c4d618 (patch)
treed7373563deca66b546925b24b6618341102ecffa /drivers/remoteproc
parentremoteproc: qcom_q6v5_pas: Deal silently with optional px and cx regulators (diff)
downloadwireguard-linux-60349fd52ecbb8b14545ff25aba2f2e230c4d618.tar.xz
wireguard-linux-60349fd52ecbb8b14545ff25aba2f2e230c4d618.zip
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 <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
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r--drivers/remoteproc/keystone_remoteproc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/remoteproc/keystone_remoteproc.c b/drivers/remoteproc/keystone_remoteproc.c
index 54781f553f4e..594a9b43b7ae 100644
--- a/drivers/remoteproc/keystone_remoteproc.c
+++ b/drivers/remoteproc/keystone_remoteproc.c
@@ -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;
}