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>
This commit is contained in:
parent
69706028b9
commit
151edfc757
1 changed files with 3 additions and 3 deletions
|
@ -305,10 +305,10 @@ static int at91sam9g20ek_audio_remove(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
||||||
|
|
||||||
atmel_ssc_put_audio(0);
|
clk_disable(mclk);
|
||||||
snd_soc_unregister_card(card);
|
|
||||||
clk_put(mclk);
|
|
||||||
mclk = NULL;
|
mclk = NULL;
|
||||||
|
snd_soc_unregister_card(card);
|
||||||
|
atmel_ssc_put_audio(0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue