Skip to content

Commit

Permalink
ASoC: pxa2xx-i2s: Fix inappropriate release of i2s clock
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Karl Beldan authored and Mark Brown committed May 14, 2009
1 parent 34555c1 commit 9bc04fd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sound/soc/pxa/pxa2xx-i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9bc04fd

Please sign in to comment.