projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea532c2
)
ASoC: fsl_aud2htx: Add error handler for pm_runtime_enable
author
Shengjiu Wang
<shengjiu.wang@nxp.com>
Thu, 25 Aug 2022 12:27:40 +0000
(20:27 +0800)
committer
Mark Brown
<broonie@kernel.org>
Thu, 25 Aug 2022 13:17:31 +0000
(14:17 +0100)
Call pm_runtime_disable() when error happens in probe()
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link:
https://lore.kernel.org/r/1661430460-5234-2-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_aud2htx.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/fsl/fsl_aud2htx.c
b/sound/soc/fsl/fsl_aud2htx.c
index bc1b9c6df95c0c1b1e812f66d7ffa9380d2cae72..1e421d9a03fbe45ec48865bd748d1dfaeba48b98 100644
(file)
--- a/
sound/soc/fsl/fsl_aud2htx.c
+++ b/
sound/soc/fsl/fsl_aud2htx.c
@@
-241,6
+241,7
@@
static int fsl_aud2htx_probe(struct platform_device *pdev)
ret = devm_snd_dmaengine_pcm_register(&pdev->dev, NULL, 0);
if (ret) {
dev_err(&pdev->dev, "failed to pcm register\n");
+ pm_runtime_disable(&pdev->dev);
return ret;
}
@@
-249,6
+250,7
@@
static int fsl_aud2htx_probe(struct platform_device *pdev)
&fsl_aud2htx_dai, 1);
if (ret) {
dev_err(&pdev->dev, "failed to register ASoC DAI\n");
+ pm_runtime_disable(&pdev->dev);
return ret;
}