OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5068406
)
ASoC: fsl: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
author
Minghao Chi
<chi.minghao@zte.com.cn>
Tue, 12 Apr 2022 08:30:00 +0000
(08:30 +0000)
committer
Mark Brown
<broonie@kernel.org>
Tue, 12 Apr 2022 16:17:18 +0000
(17:17 +0100)
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>
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Link:
https://lore.kernel.org/r/20220412083000.2532711-1-chi.minghao@zte.com.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_esai.c
patch
|
blob
|
history
diff --git
a/sound/soc/fsl/fsl_esai.c
b/sound/soc/fsl/fsl_esai.c
index
ed444e8
..
1a2bdf8
100644
(file)
--- a/
sound/soc/fsl/fsl_esai.c
+++ b/
sound/soc/fsl/fsl_esai.c
@@
-1050,11
+1050,9
@@
static int fsl_esai_probe(struct platform_device *pdev)
goto err_pm_disable;
}
- ret = pm_runtime_get_sync(&pdev->dev);
- if (ret < 0) {
- pm_runtime_put_noidle(&pdev->dev);
+ ret = pm_runtime_resume_and_get(&pdev->dev);
+ if (ret < 0)
goto err_pm_get_sync;
- }
ret = fsl_esai_hw_init(esai_priv);
if (ret)