]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 13 Aug 2021 07:31:27 +0000 (09:31 +0200)
commit5382579e0f58e25b5b5251289432c399302364bd
tree77d211be1286c7995d0ff84bab8d9faa5bc742d4
parentff856d3794b25ba96c1567abf7f7da30fe4ebb46
ASoC: fsl_spdif: Fix error handler with pm_runtime_enable

BugLink: https://bugs.launchpad.net/bugs/1938340
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
sound/soc/fsl/fsl_spdif.c