[PATCH v2 3/6] ASoC: fsl_asrc: Fix runtime PM usage count on init failure

From: phucduc . bui

Date: Fri Nov 13 2026 - 07:51:10 EST


From: bui duc phuc <phucduc.bui@xxxxxxxxx>

Balance the runtime PM usage count when fsl_asrc_init() fails
after pm_runtime_resume_and_get() succeeds.

Fixes: cab04ab5900f ("ASoC: fsl_asrc: Don't use devm_regmap_init_mmio_clk")
Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
---

Change in v2:
- Update the commit based on Sashiko's review.

sound/soc/fsl/fsl_asrc.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c
index c91ffb5e0c5e..f7ac60724c6c 100644
--- a/sound/soc/fsl/fsl_asrc.c
+++ b/sound/soc/fsl/fsl_asrc.c
@@ -1432,6 +1432,7 @@ static int fsl_asrc_probe(struct platform_device *pdev)
ret = fsl_asrc_init(asrc);
if (ret) {
dev_err(&pdev->dev, "failed to init asrc %d\n", ret);
+ pm_runtime_put_noidle(&pdev->dev);
goto err_pm_get_sync;
}

--
2.43.0