aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/pxa/pxa2xx-i2s.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/pxa/pxa2xx-i2s.c')
-rw-r--r--sound/soc/pxa/pxa2xx-i2s.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/pxa/pxa2xx-i2s.c b/sound/soc/pxa/pxa2xx-i2s.c
index d08583790d23..3075a426124c 100644
--- a/sound/soc/pxa/pxa2xx-i2s.c
+++ b/sound/soc/pxa/pxa2xx-i2s.c
@@ -166,7 +166,7 @@ static int pxa2xx_i2s_hw_params(struct snd_pcm_substream *substream,
166 struct pxa2xx_pcm_dma_params *dma_data; 166 struct pxa2xx_pcm_dma_params *dma_data;
167 167
168 BUG_ON(IS_ERR(clk_i2s)); 168 BUG_ON(IS_ERR(clk_i2s));
169 clk_enable(clk_i2s); 169 clk_prepare_enable(clk_i2s);
170 clk_ena = 1; 170 clk_ena = 1;
171 pxa_i2s_wait(); 171 pxa_i2s_wait();
172 172
@@ -259,7 +259,7 @@ static void pxa2xx_i2s_shutdown(struct snd_pcm_substream *substream,
259 SACR0 &= ~SACR0_ENB; 259 SACR0 &= ~SACR0_ENB;
260 pxa_i2s_wait(); 260 pxa_i2s_wait();
261 if (clk_ena) { 261 if (clk_ena) {
262 clk_disable(clk_i2s); 262 clk_disable_unprepare(clk_i2s);
263 clk_ena = 0; 263 clk_ena = 0;
264 } 264 }
265 } 265 }