diff options
author | Bo Shen <voice.shen@atmel.com> | 2013-01-31 11:53:40 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-02-04 18:34:14 +0000 |
commit | 151edfc757babd94d8b6c64d84a9ccf8f3c53320 (patch) | |
tree | 7968c22e9376758174fd3960401364a1c62c9f04 /sound/soc/atmel/sam9g20_wm8731.c | |
parent | 69706028b94f10a2dc0a28af65e84ec6fd38054b (diff) |
ASoC: sam9g20_wm8731: disable clock and correct sequence when unload
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>
Diffstat (limited to 'sound/soc/atmel/sam9g20_wm8731.c')
-rw-r--r-- | sound/soc/atmel/sam9g20_wm8731.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/atmel/sam9g20_wm8731.c b/sound/soc/atmel/sam9g20_wm8731.c index da976291da9..2d6fbd0125b 100644 --- a/sound/soc/atmel/sam9g20_wm8731.c +++ b/sound/soc/atmel/sam9g20_wm8731.c @@ -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; } |