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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 8ab2d12 commit ef0a098

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)