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)
committerMark Brown <broonie@kernel.org>
Mon, 14 Jun 2021 14:01:55 +0000 (15:01 +0100)
commit28108d71ee11a7232e1102effab3361049dcd3b8
tree2d3936790235eef00017cd21ccfe2cdfb55afc6c
parentf1905ab2a8a2103b7fa74a5f96fb50cce0dee6f5
ASoC: fsl_spdif: Fix error handler with pm_runtime_enable

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>
sound/soc/fsl/fsl_spdif.c