ASoC: atmel_ssc_dai: correct sequence when unload
authorBo Shen <voice.shen@atmel.com>
Thu, 31 Jan 2013 03:53:39 +0000 (11:53 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 4 Feb 2013 18:34:14 +0000 (18:34 +0000)
correct the sequence when unload this module

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/atmel/atmel_ssc_dai.c

index 5cb849825a0427b83088c0f918f8eff31e908607..e13580d6c4761a9e57d7b187409ba2429ca20722 100644 (file)
@@ -778,8 +778,8 @@ void atmel_ssc_put_audio(int ssc_id)
 {
        struct ssc_device *ssc = ssc_info[ssc_id].ssc;
 
-       ssc_free(ssc);
        asoc_ssc_exit(&ssc->pdev->dev);
+       ssc_free(ssc);
 }
 EXPORT_SYMBOL_GPL(atmel_ssc_put_audio);