summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorWang Jingjin <wangjingjin1@huawei.com>2022-12-05 06:28:02 +0300
committerMark Brown <broonie@kernel.org>2022-12-07 17:19:13 +0300
commitef0a098efb36660326c133af9b5a04a96a00e3ca (patch)
tree5c58f2882c5280a1b3c898e7b3c99ef1279b2b3d /sound
parent8ab2d12c726f0fde0692fa5d81d8019b3dcd62d0 (diff)
downloadlinux-ef0a098efb36660326c133af9b5a04a96a00e3ca.tar.xz
ASoC: rockchip: pdm: Add missing clk_disable_unprepare() in rockchip_pdm_runtime_resume()
The clk_disable_unprepare() should be called in the error handling of rockchip_pdm_runtime_resume(). Fixes: fc05a5b22253 ("ASoC: rockchip: add support for pdm controller") Signed-off-by: Wang Jingjin <wangjingjin1@huawei.com> Link: https://lore.kernel.org/r/20221205032802.2422983-1-wangjingjin1@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/rockchip/rockchip_pdm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/rockchip/rockchip_pdm.c b/sound/soc/rockchip/rockchip_pdm.c
index a7549f827235..5b1e47bdc376 100644
--- a/sound/soc/rockchip/rockchip_pdm.c
+++ b/sound/soc/rockchip/rockchip_pdm.c
@@ -431,6 +431,7 @@ static int rockchip_pdm_runtime_resume(struct device *dev)
ret = clk_prepare_enable(pdm->hclk);
if (ret) {
+ clk_disable_unprepare(pdm->clk);
dev_err(pdm->dev, "hclock enable failed %d\n", ret);
return ret;
}