]> git.itanic.dy.fi Git - linux-stable/commit
ASoC: fsl_micfil: Fix error handler with pm_runtime_enable
authorShengjiu Wang <shengjiu.wang@nxp.com>
Mon, 8 May 2023 10:16:36 +0000 (18:16 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 8 May 2023 13:35:10 +0000 (22:35 +0900)
commit17955aba7877a4494d8093ae5498e19469b01d57
tree4c77dd8780f4dc4eee9a5af0870e5aee268aa544
parentab6ecfbf40fccf74b6ec2ba7ed6dd2fc024c3af2
ASoC: fsl_micfil: Fix error handler with pm_runtime_enable

There is error message when defer probe happens:

fsl-micfil-dai 30ca0000.micfil: Unbalanced pm_runtime_enable!

Fix the error handler with pm_runtime_enable and add
fsl_micfil_remove() for pm_runtime_disable.

Fixes: 47a70e6fc9a8 ("ASoC: Add MICFIL SoC Digital Audio Interface driver.")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com
Link: https://lore.kernel.org/r/1683540996-6136-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org
sound/soc/fsl/fsl_micfil.c