diff options
author | Fabio Baltieri <fabio.baltieri@linaro.org> | 2013-04-30 10:09:52 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-30 14:31:30 -0400 |
commit | 37c1b9273fefe90e45c7d01ba4209e42d5e3e058 (patch) | |
tree | 3babda6ef72c24ce46459c83e183e0f2a5d583fa /sound/soc | |
parent | c1be5a5b1b355d40e6cf79cc979eb66dafa24ad1 (diff) |
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>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/soc-dapm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index d6d9ba2e6916..41b8b8ef4872 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -1070,9 +1070,9 @@ int dapm_clock_event(struct snd_soc_dapm_widget *w, | |||
1070 | 1070 | ||
1071 | #ifdef CONFIG_HAVE_CLK | 1071 | #ifdef CONFIG_HAVE_CLK |
1072 | if (SND_SOC_DAPM_EVENT_ON(event)) { | 1072 | if (SND_SOC_DAPM_EVENT_ON(event)) { |
1073 | return clk_enable(w->clk); | 1073 | return clk_prepare_enable(w->clk); |
1074 | } else { | 1074 | } else { |
1075 | clk_disable(w->clk); | 1075 | clk_disable_unprepare(w->clk); |
1076 | return 0; | 1076 | return 0; |
1077 | } | 1077 | } |
1078 | #endif | 1078 | #endif |