[alsa-devel] [PATCH] ASoC: tegra: use clk_disable_unprepare instead of clk_disable
 
            From: Wei Yongjun yongjun_wei@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@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; }
 
            On 11/15/2013 02:53 AM, Wei Yongjun wrote:
From: Wei Yongjun yongjun_wei@trendmicro.com.cn
clk_prepare_enable() is used so clk_disable_unprepare() should be used instead of clk_disable() in the error handling path.
Acked-by: Stephen Warren swarren@nvidia.com
 
            On Fri, Nov 15, 2013 at 05:53:45PM +0800, Wei Yongjun wrote:
From: Wei Yongjun yongjun_wei@trendmicro.com.cn
clk_prepare_enable() is used so clk_disable_unprepare() should be used instead of clk_disable() in the error handling path.
Applied, thanks.
participants (3)
- 
                 Mark Brown Mark Brown
- 
                 Stephen Warren Stephen Warren
- 
                 Wei Yongjun Wei Yongjun