From: Bo Shen Date: Thu, 31 Jan 2013 03:53:40 +0000 (+0800) Subject: ASoC: sam9g20_wm8731: disable clock and correct sequence when unload X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=151edfc757babd94d8b6c64d84a9ccf8f3c53320;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ASoC: sam9g20_wm8731: disable clock and correct sequence when unload disable clock and correct sequence when unload Signed-off-by: Bo Shen Signed-off-by: Mark Brown --- diff --git a/sound/soc/atmel/sam9g20_wm8731.c b/sound/soc/atmel/sam9g20_wm8731.c index da976291da9e..2d6fbd0125b9 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; }