ASoC: sam9g20_wm8731: disable clock and correct sequence when unload
authorBo Shen <voice.shen@atmel.com>
Thu, 31 Jan 2013 03:53:40 +0000 (11:53 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 4 Feb 2013 18:34:14 +0000 (18:34 +0000)
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>
sound/soc/atmel/sam9g20_wm8731.c

index da976291da9e28c46c55f45ff9ba70ea52544181..2d6fbd0125b9a6b6411a256c6d3e950d6be34878 100644 (file)
@@ -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;
 }