ASoC: dapm: use clk_prepare_enable and clk_disable_unprepare

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>
This commit is contained in:
Fabio Baltieri 2013-04-30 16:09:52 +02:00 committed by Mark Brown
parent c1be5a5b1b
commit 37c1b9273f
1 changed files with 2 additions and 2 deletions

View 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