Skip to content

Commit ef0a098

Browse files
Wang Jingjinbroonie
authored andcommitted
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: 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>
1 parent 8ab2d12 commit ef0a098

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sound/soc/rockchip/rockchip_pdm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ static int rockchip_pdm_runtime_resume(struct device *dev)
431431

432432
ret = clk_prepare_enable(pdm->hclk);
433433
if (ret) {
434+
clk_disable_unprepare(pdm->clk);
434435
dev_err(pdm->dev, "hclock enable failed %d\n", ret);
435436
return ret;
436437
}

0 commit comments

Comments
 (0)