aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/atmel/atmel_ssc_dai.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c
index 7fbfa051f6e1..a7a7bbc07627 100644
--- a/sound/soc/atmel/atmel_ssc_dai.c
+++ b/sound/soc/atmel/atmel_ssc_dai.c
@@ -838,10 +838,8 @@ int atmel_ssc_set_audio(int ssc_id)
838 } 838 }
839 839
840 ssc_pdev = platform_device_alloc("atmel-ssc-dai", ssc_id); 840 ssc_pdev = platform_device_alloc("atmel-ssc-dai", ssc_id);
841 if (!ssc_pdev) { 841 if (!ssc_pdev)
842 ssc_free(ssc);
843 return -ENOMEM; 842 return -ENOMEM;
844 }
845 843
846 /* If we can grab the SSC briefly to parent the DAI device off it */ 844 /* If we can grab the SSC briefly to parent the DAI device off it */
847 ssc = ssc_request(ssc_id); 845 ssc = ssc_request(ssc_id);