Commit ef0a098e authored by Wang Jingjin's avatar Wang Jingjin Committed by Mark Brown

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: fc05a5b2 ("ASoC: rockchip: add support for pdm controller")
Signed-off-by: default avatarWang Jingjin <wangjingjin1@huawei.com>
Link: https://lore.kernel.org/r/20221205032802.2422983-1-wangjingjin1@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 8ab2d12c
...@@ -431,6 +431,7 @@ static int rockchip_pdm_runtime_resume(struct device *dev) ...@@ -431,6 +431,7 @@ static int rockchip_pdm_runtime_resume(struct device *dev)
ret = clk_prepare_enable(pdm->hclk); ret = clk_prepare_enable(pdm->hclk);
if (ret) { if (ret) {
clk_disable_unprepare(pdm->clk);
dev_err(pdm->dev, "hclock enable failed %d\n", ret); dev_err(pdm->dev, "hclock enable failed %d\n", ret);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment