]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: pcm512x: Fix PM disable depth imbalance in pcm512x_probe
authorZhang Qilong <zhangqilong3@huawei.com>
Wed, 28 Sep 2022 16:04:02 +0000 (00:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:41:08 +0000 (11:41 +0100)
commit36e6965bf6f96a43a903dd42d926611fc79a0374
treea0e591ab2ee289d6b0287975b7191a727a5de1e9
parent946a7496529a96c36491b1a44e5bc30060ccbc78
ASoC: pcm512x: Fix PM disable depth imbalance in pcm512x_probe

[ Upstream commit 521a495982b1f9aeb0ddf61523a3036488511521 ]

The pm_runtime_enable will increase power disable depth. Thus
a pairing decrement is needed on the error handling path to
keep it balanced according to context. We fix it by going to
err_pm instead of err_clk.

Fixes:de07d1146a4ef ("ASoC: pcm512x: Support mastering BCLK/LRCLK using the PLL")

Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Link: https://lore.kernel.org/r/20220928160402.126140-1-zhangqilong3@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/pcm512x.c