summaryrefslogtreecommitdiffstats
path: root/sound/soc/pxa/pxa2xx-i2s.c
diff options
context:
space:
mode:
authorKarl Beldan <karl.beldan@gmail.com>2009-05-13 22:16:52 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-05-14 21:35:31 +0200
commit9bc04fd1677a956fdd7c5645a09de34ca9a8f1a6 (patch)
treec48965abc656afe51755f3a0ac970f1867f52ca3 /sound/soc/pxa/pxa2xx-i2s.c
parentASoC: pxa2xx-i2s: Handle SACR1_DRPL and SACR1_DREC separately (diff)
downloadlinux-9bc04fd1677a956fdd7c5645a09de34ca9a8f1a6.tar.xz
linux-9bc04fd1677a956fdd7c5645a09de34ca9a8f1a6.zip
ASoC: pxa2xx-i2s: Fix inappropriate release of i2s clock
i2s_clk is 'put' for no reason in pxa2xx_i2s_shutdown. Now we 'get' i2s_clk at probe and 'put' it at driver removal or when probe fails. Signed-off-by: Karl Beldan <karl.beldan@mobile-devices.fr> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/pxa/pxa2xx-i2s.c')
-rw-r--r--sound/soc/pxa/pxa2xx-i2s.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/pxa/pxa2xx-i2s.c b/sound/soc/pxa/pxa2xx-i2s.c
index 115b471b2def..bc12a09527f3 100644
--- a/sound/soc/pxa/pxa2xx-i2s.c
+++ b/sound/soc/pxa/pxa2xx-i2s.c
@@ -257,8 +257,6 @@ static void pxa2xx_i2s_shutdown(struct snd_pcm_substream *substream,
pxa_i2s_wait();
clk_disable(clk_i2s);
}
-
- clk_put(clk_i2s);
}
#ifdef CONFIG_PM