diff options
author | Minghao Chi <chi.minghao@zte.com.cn> | 2022-04-08 08:08:53 +0000 |
---|---|---|
committer | Nishanth Menon <nm@ti.com> | 2022-04-11 08:46:09 -0500 |
commit | f25d2b2b554133b935e72c61deb40d82287a6f75 (patch) | |
tree | c8e3b4572bb6adfdf235a022be9016cb84ef0708 /drivers/soc/ti | |
parent | d281a982c2693c6a7bffaa1ae1ff3b400d6e6c74 (diff) | |
download | linux-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/soc/ti')
-rw-r--r-- | drivers/soc/ti/pruss.c | 3 |
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; } |