[alsa-devel] [PATCH] ASoC: tegra: use clk_disable_unprepare instead of clk_disable

Wei Yongjun weiyj.lk at gmail.com
Fri Nov 15 10:53:45 CET 2013


From: Wei Yongjun <yongjun_wei at trendmicro.com.cn>

clk_prepare_enable() is used so clk_disable_unprepare() should be
used instead of clk_disable() in the error handling path.

Signed-off-by: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
---
 sound/soc/tegra/tegra30_ahub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/tegra/tegra30_ahub.c b/sound/soc/tegra/tegra30_ahub.c
index 3115433..63f65d9 100644
--- a/sound/soc/tegra/tegra30_ahub.c
+++ b/sound/soc/tegra/tegra30_ahub.c
@@ -84,7 +84,7 @@ static int tegra30_ahub_runtime_resume(struct device *dev)
 	ret = clk_prepare_enable(ahub->clk_apbif);
 	if (ret) {
 		dev_err(dev, "clk_enable apbif failed: %d\n", ret);
-		clk_disable(ahub->clk_d_audio);
+		clk_disable_unprepare(ahub->clk_d_audio);
 		return ret;
 	}
 



More information about the Alsa-devel mailing list