Skip to content

Commit

Permalink
ASoC: rockchip: pdm: Add missing clk_disable_unprepare() in rockchip_…
Browse files Browse the repository at this point in the history
…pdm_runtime_resume()

[ Upstream commit ef0a098 ]

The clk_disable_unprepare() should be called in the error handling of
rockchip_pdm_runtime_resume().

Fixes: fc05a5b ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Wang Jingjin authored and gregkh committed Dec 31, 2022
1 parent 4cc8431 commit bebbba7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/rockchip/rockchip_pdm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit bebbba7

Please sign in to comment.