ASoC: rockchip: spdif: Add missing clk_disable_unprepare() in rk_spdif_runtime_resume()
authorWang Jingjin <wangjingjin1@huawei.com>
Thu, 8 Dec 2022 06:39:00 +0000 (14:39 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 12 Dec 2022 15:44:25 +0000 (15:44 +0000)
commit6d94d0090527b1763872275a7ccd44df7219b31e
treebbc328db65f9ad204eec4dbb1c49bda93e442449
parent9529dc167ffcdfd201b9f0eda71015f174095f7e
ASoC: rockchip: spdif: Add missing clk_disable_unprepare() in rk_spdif_runtime_resume()

rk_spdif_runtime_resume() may have called clk_prepare_enable() before return
from failed branches, add missing clk_disable_unprepare() in this case.

Fixes: f874b80e1571 ("ASoC: rockchip: Add rockchip SPDIF transceiver driver")
Signed-off-by: Wang Jingjin <wangjingjin1@huawei.com>
Link: https://lore.kernel.org/r/20221208063900.4180790-1-wangjingjin1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_spdif.c