]> git.baikalelectronics.ru Git - kernel.git/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 May 2023 16:32:43 +0000 (17:32 +0100)
commit1fff83a745af33ab98ac20241065a0753bbe4bab
tree1431b1c4972326cd4d7fa46f3c2113539e4896bd
parent46b02b56bc5280f765a67b5b3de7e4e45cda4dad
ASoC: fsl_micfil: Fix error handler with pm_runtime_enable

[ Upstream commit 17955aba7877a4494d8093ae5498e19469b01d57 ]

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: e85d7e270786 ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/fsl/fsl_micfil.c