ASoC: fsl_spdif: Fix error handler with pm_runtime_enable
authorShengjiu Wang <shengjiu.wang@nxp.com>
Fri, 11 Jun 2021 06:18:38 +0000 (14:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:45 +0000 (16:56 +0200)
commit14106b90e147bd7084d3641f55cd20ad08a88537
treee7e13cafb600e1f6087360447a9f9b62792fb2ca
parent9cf11dca57a5db964af61cac5a784985dd6a7507
ASoC: fsl_spdif: Fix error handler with pm_runtime_enable

[ Upstream commit 28108d71ee11a7232e1102effab3361049dcd3b8 ]

There is error message when defer probe happens:

fsl-spdif-dai 2dab0000.spdif: Unbalanced pm_runtime_enable!

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

Fixes: 9cb2b3796e08 ("ASoC: fsl_spdif: Add pm runtime function")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1623392318-26304-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_spdif.c