ASoC: fsl_rpmsg: Fix error handler with pm_runtime_enable
authorChancel Liu <chancel.liu@nxp.com>
Mon, 25 Dec 2023 08:06:08 +0000 (17:06 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 29 Dec 2023 02:08:55 +0000 (02:08 +0000)
commitf9d378fc68c43fd41b35133edec9cd902ec334ec
tree789c3ba5befb7e9be01a3bc739404a8abc3d0125
parent8f0f01647550daf9cd8752c1656dcb0136d79ce1
ASoC: fsl_rpmsg: Fix error handler with pm_runtime_enable

There is error message when defer probe happens:

fsl_rpmsg rpmsg_audio: Unbalanced pm_runtime_enable!

Fix the error handler with pm_runtime_enable.

Fixes: b73d9e6225e8 ("ASoC: fsl_rpmsg: Add CPU DAI driver for audio base on rpmsg")
Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Link: https://lore.kernel.org/r/20231225080608.967953-1-chancel.liu@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_rpmsg.c