[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230403152737.17671-1-yll@hust.edu.cn>
Date: Mon, 3 Apr 2023 23:27:37 +0800
From: Liliang Ye <yll@...t.edu.cn>
To: Shengjiu Wang <shengjiu.wang@...il.com>,
Xiubo Li <Xiubo.Lee@...il.com>,
Fabio Estevam <festevam@...il.com>,
Nicolin Chen <nicoleotsuka@...il.com>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.com>
Cc: hust-os-kernel-patches@...glegroups.com,
Liliang Ye <yll@...t.edu.cn>,
Dan Carpenter <error27@...il.com>,
Shengjiu Wang <shengjiu.wang@....com>,
alsa-devel@...a-project.org, linuxppc-dev@...ts.ozlabs.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 2/2] ASoC: fsl_mqs: call pm_runtime_disable() on error path
pm_runtime_disable was missed in cleanup operation, which corresponds to
the earlier call to pm_runtime_enable.
To fix this, add pm_runtime_disable() on error path.
Fixes: 9e28f6532c61 ("ASoC: fsl_mqs: Add MQS component driver")
Signed-off-by: Liliang Ye <yll@...t.edu.cn>
Reviewed-by: Dan Carpenter <error27@...il.com>
---
sound/soc/fsl/fsl_mqs.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/sound/soc/fsl/fsl_mqs.c b/sound/soc/fsl/fsl_mqs.c
index 32d20d351bbf..129d426c60c4 100644
--- a/sound/soc/fsl/fsl_mqs.c
+++ b/sound/soc/fsl/fsl_mqs.c
@@ -251,9 +251,13 @@ static int fsl_mqs_probe(struct platform_device *pdev)
ret = devm_snd_soc_register_component(&pdev->dev, &soc_codec_fsl_mqs,
&fsl_mqs_dai, 1);
if (ret)
- return ret;
+ goto err_pm_disable;
return 0;
+
+err_pm_disable:
+ pm_runtime_disable(&pdev->dev);
+ return ret;
}
static int fsl_mqs_remove(struct platform_device *pdev)
--
2.34.1
Powered by blists - more mailing lists