From: Karl Beldan Date: Wed, 13 May 2009 20:16:52 +0000 (+0200) Subject: ASoC: pxa2xx-i2s: Fix inappropriate release of i2s clock X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9bc04fd1677a956fdd7c5645a09de34ca9a8f1a6;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 Signed-off-by: Mark Brown --- 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