Skip to content

Commit

Permalink
soc: ti: knav_qmss_queue: Use pm_runtime_resume_and_get instead of pm…
Browse files Browse the repository at this point in the history
…_runtime_get_sync

[ Upstream commit 12eeb74 ]

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
Stable-dep-of: e961c0f ("soc: ti: knav_qmss_queue: Fix PM disable depth imbalance in knav_queue_probe")
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Minghao Chi authored and gregkh committed Dec 31, 2022
1 parent fe53048 commit 972f8fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/soc/ti/knav_qmss_queue.c
Expand Up @@ -1785,9 +1785,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;
}
Expand Down

0 comments on commit 972f8fc

Please sign in to comment.