aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinghao Chi <[email protected]>2022-04-08 08:08:53 +0000
committerNishanth Menon <[email protected]>2022-04-11 08:46:09 -0500
commitf25d2b2b554133b935e72c61deb40d82287a6f75 (patch)
treec8e3b4572bb6adfdf235a022be9016cb84ef0708
parentd281a982c2693c6a7bffaa1ae1ff3b400d6e6c74 (diff)
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 <[email protected]> Signed-off-by: Minghao Chi <[email protected]> Signed-off-by: Nishanth Menon <[email protected]> Reviewed-by: Dave Gerlach <[email protected]> Link: https://lore.kernel.org/r/[email protected]
-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;
}