ASoC: dapm: use clk_prepare_enable and clk_disable_unprepare
authorFabio Baltieri <fabio.baltieri@linaro.org>
Tue, 30 Apr 2013 14:09:52 +0000 (16:09 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 30 Apr 2013 18:31:30 +0000 (19:31 +0100)
Update dapm_clock_event to use clk_prepare_enable and
clk_disable_unprepare.

Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-dapm.c

index d6d9ba2..41b8b8e 100644 (file)
@@ -1070,9 +1070,9 @@ int dapm_clock_event(struct snd_soc_dapm_widget *w,
 
 #ifdef CONFIG_HAVE_CLK
        if (SND_SOC_DAPM_EVENT_ON(event)) {
-               return clk_enable(w->clk);
+               return clk_prepare_enable(w->clk);
        } else {
-               clk_disable(w->clk);
+               clk_disable_unprepare(w->clk);
                return 0;
        }
 #endif