From: bui duc phuc <[email protected]>
Balance the runtime PM usage count when fsl_asrc_init() fails
after pm_runtime_get_sync() succeeds.
Fixes: 286d658477a4 ("ASoC: fsl_asrc: register m2m platform device")
Signed-off-by: bui duc phuc <[email protected]>
---
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