summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMinghao Chi <chi.minghao@zte.com.cn>2022-04-08 08:08:53 +0000
committerNishanth Menon <nm@ti.com>2022-04-11 08:46:09 -0500
commitf25d2b2b554133b935e72c61deb40d82287a6f75 (patch)
treec8e3b4572bb6adfdf235a022be9016cb84ef0708 /drivers
parentd281a982c2693c6a7bffaa1ae1ff3b400d6e6c74 (diff)
downloadlinux-f25d2b2b554133b935e72c61deb40d82287a6f75.tar.gz
linux-f25d2b2b554133b935e72c61deb40d82287a6f75.tar.bz2
linux-f25d2b2b554133b935e72c61deb40d82287a6f75.zip
soc: ti: pruss: 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: Nishanth Menon <nm@ti.com> Reviewed-by: Dave Gerlach <d-gerlach@ti.com> Link: https://lore.kernel.org/r/20220408080853.2494292-1-chi.minghao@zte.com.cn
Diffstat (limited to 'drivers')
-rw-r--r--drivers/soc/ti/pruss.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/soc/ti/pruss.c b/drivers/soc/ti/pruss.c
index b36779309e49..0e4ba0f89533 100644
--- a/drivers/soc/ti/pruss.c
+++ b/drivers/soc/ti/pruss.c
@@ -279,10 +279,9 @@ static int pruss_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, pruss);
pm_runtime_enable(dev);
- ret = pm_runtime_get_sync(dev);
+ ret = pm_runtime_resume_and_get(dev);
if (ret < 0) {
dev_err(dev, "couldn't enable module\n");
- pm_runtime_put_noidle(dev);
goto rpm_disable;
}