Skip to content

Commit 12eeb74

Browse files
Minghao Chinmenon
authored andcommitted
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
1 parent d3e3116 commit 12eeb74

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/soc/ti/knav_qmss_queue.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,9 +1783,8 @@ static int knav_queue_probe(struct platform_device *pdev)
17831783
INIT_LIST_HEAD(&kdev->pdsps);
17841784

17851785
pm_runtime_enable(&pdev->dev);
1786-
ret = pm_runtime_get_sync(&pdev->dev);
1786+
ret = pm_runtime_resume_and_get(&pdev->dev);
17871787
if (ret < 0) {
1788-
pm_runtime_put_noidle(&pdev->dev);
17891788
dev_err(dev, "Failed to enable QMSS\n");
17901789
return ret;
17911790
}

0 commit comments

Comments
 (0)