Skip to content

Commit

Permalink
ASoC: sam9g20_wm8731: disable clock and correct sequence when unload
Browse files Browse the repository at this point in the history
disable clock and correct sequence when unload

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Bo Shen authored and Mark Brown committed Feb 4, 2013
1 parent 6970602 commit 151edfc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sound/soc/atmel/sam9g20_wm8731.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,10 @@ static int at91sam9g20ek_audio_remove(struct platform_device *pdev)
{
struct snd_soc_card *card = platform_get_drvdata(pdev);

atmel_ssc_put_audio(0);
snd_soc_unregister_card(card);
clk_put(mclk);
clk_disable(mclk);
mclk = NULL;
snd_soc_unregister_card(card);
atmel_ssc_put_audio(0);

return 0;
}
Expand Down

0 comments on commit 151edfc

Please sign in to comment.