diff options
author | Minghao Chi <chi.minghao@zte.com.cn> | 2022-04-18 06:29:55 +0000 |
---|---|---|
committer | Nishanth Menon <nm@ti.com> | 2022-04-22 18:12:06 -0500 |
commit | 12eeb74925da70eb39d90abead9de9793be3d4c8 (patch) | |
tree | 208399cead16360e9ff681a822ab21e5b5efc2f5 /drivers/soc/ti | |
parent | d3e3116f253591a473873fab8363ecb998ddde13 (diff) | |
download | linux-12eeb74925da70eb39d90abead9de9793be3d4c8.tar.bz2 |
soc: ti: knav_qmss_queue: Use pm_runtime_resume_and_get instead of pm_runtime_get_sync
Using pm_runtime_resume_and_get is more appropriate for simplifying
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>
Link: https://lore.kernel.org/r/20220418062955.2557949-1-chi.minghao@zte.com.cn
Diffstat (limited to 'drivers/soc/ti')
-rw-r--r-- | drivers/soc/ti/knav_qmss_queue.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss_queue.c index 4dbaa8c3636c..30612719e2f1 100644 --- a/drivers/soc/ti/knav_qmss_queue.c +++ b/drivers/soc/ti/knav_qmss_queue.c @@ -1783,9 +1783,8 @@ static int knav_queue_probe(struct platform_device *pdev) INIT_LIST_HEAD(&kdev->pdsps); pm_runtime_enable(&pdev->dev); - ret = pm_runtime_get_sync(&pdev->dev); + ret = pm_runtime_resume_and_get(&pdev->dev); if (ret < 0) { - pm_runtime_put_noidle(&pdev->dev); dev_err(dev, "Failed to enable QMSS\n"); return ret; } |