projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6af504
)
soc: ti: knav_dma: Use pm_runtime_resume_and_get instead of pm_runtime_get_sync
author
Minghao Chi
<chi.minghao@zte.com.cn>
Tue, 12 Apr 2022 08:29:23 +0000
(08:29 +0000)
committer
Nishanth Menon
<nm@ti.com>
Fri, 15 Apr 2022 20:04:53 +0000
(15:04 -0500)
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>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Link:
https://lore.kernel.org/r/20220412082923.2532649-1-chi.minghao@zte.com.cn
drivers/soc/ti/knav_dma.c
patch
|
blob
|
history
diff --git
a/drivers/soc/ti/knav_dma.c
b/drivers/soc/ti/knav_dma.c
index 7e126a73e56e75b600fddbc005ed5e3bed4f5610..d756591de9735afecc816f9f0e68b4f91206b2ab 100644
(file)
--- a/
drivers/soc/ti/knav_dma.c
+++ b/
drivers/soc/ti/knav_dma.c
@@
-745,9
+745,8
@@
static int knav_dma_probe(struct platform_device *pdev)
INIT_LIST_HEAD(&kdev->list);
pm_runtime_enable(kdev->dev);
- ret = pm_runtime_
get_sync
(kdev->dev);
+ ret = pm_runtime_
resume_and_get
(kdev->dev);
if (ret < 0) {
- pm_runtime_put_noidle(kdev->dev);
dev_err(kdev->dev, "unable to enable pktdma, err %d\n", ret);
goto err_pm_disable;
}