Commit 151edfc7 authored by Bo Shen's avatar Bo Shen Committed by Mark Brown
Browse files

ASoC: sam9g20_wm8731: disable clock and correct sequence when unload



disable clock and correct sequence when unload

Signed-off-by: default avatarBo Shen <voice.shen@atmel.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 69706028
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;
}