]> git.baikalelectronics.ru Git - kernel.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)
committerMark Brown <broonie@kernel.org>
Thu, 19 May 2022 15:44:31 +0000 (16:44 +0100)
commitd85217b724a2a5e07b323036cf4f2c82c73e6051
tree50386ffc4951ef1a8862915fad49ec96dc136903
parent8fe5f02d530105941f4d2c86015bf0d9edac67be
ASoC: wm2000: fix missing clk_disable_unprepare() on error in wm2000_anc_transition()

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

Fixes: 0d3578888906 ("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>
sound/soc/codecs/wm2000.c