]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: wm2000: fix missing clk_disable_unprepare() on error in wm2000_anc_transition()
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 14 May 2022 09:10:53 +0000 (17:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 14:53:50 +0000 (16:53 +0200)
commita6ded4a09e0ba2a56b81c5116a25312d8868f76a
treedeb3b0c848b8f2c16f4283086bfe842b68b0270f
parentdd6a93031407ba4a9b954e2410b043613a747443
ASoC: wm2000: fix missing clk_disable_unprepare() on error in wm2000_anc_transition()

[ Upstream commit be2af740e2a9c7134f2d8ab4f104006e110b13de ]

Fix the missing clk_disable_unprepare() before return
from wm2000_anc_transition() in the error handling case.

Fixes: 514cfd6dd725 ("ASoC: wm2000: Integrate with clock API")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220514091053.686416-1-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/wm2000.c