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)
commitce6c7befc2ea73ea0e496b35dbac72363c7c18b0
tree1431b1c4972326cd4d7fa46f3c2113539e4896bd
parent9d3ac384cbce2b488609bf807d2ac9e230affcbd
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: 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
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/fsl/fsl_micfil.c