]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl_xcvr:Fix unbalanced pm_runtime_enable in fsl_xcvr_probe
authorzhangqilong <zhangqilong3@huawei.com>
Thu, 2 Jun 2022 07:20:24 +0000 (15:20 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 6 Jun 2022 11:38:44 +0000 (12:38 +0100)
commit2b0a32c8c314ac60c85e76e021561a18a1014271
treeda1bb253cf81f2813cab2e17b1128b15d68b045f
parent75a4a7943d2e106a3a61951e229adcea31d94a56
ASoC: fsl_xcvr:Fix unbalanced pm_runtime_enable in fsl_xcvr_probe

a) Add missing pm_runtime_disable() when probe error out. It could
avoid pm_runtime implementation complains when removing and probing
again the driver.
b) Add remove for missing pm_runtime_disable().

Fix:50545868bd44a ("ASoC: fsl_xcvr: register platform component before registering cpu dai")

Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Link: https://lore.kernel.org/r/20220602072024.33236-1-zhangqilong3@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_xcvr.c