ASoC: wm8998: Fix PM disable depth imbalance on error
authorZhang Qilong <zhangqilong3@huawei.com>
Wed, 11 Nov 2020 04:13:26 +0000 (12:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:08 +0000 (11:53 +0100)
commit82162f4bdf6a89f719fcf4a4ae6fde2c6194abee
treec0e2f9b8bb2890c879293b2e6645ba35246e19aa
parent351d0015c1bf5977b9aa88c325d8ff56158f762e
ASoC: wm8998: Fix PM disable depth imbalance on error

[ Upstream commit 193aa0a043645220d2a2f783ba06ae13d4601078 ]

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.

Fixes: 31833ead95c2c ("ASoC: arizona: Move request of speaker IRQs into bus probe")
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20201111041326.1257558-4-zhangqilong3@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/wm8998.c