ASoC: Fix resource leak in goni_wm8994.c
authorAxel Lin <axel.lin@gmail.com>
Fri, 26 Nov 2010 06:51:56 +0000 (14:51 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 29 Nov 2010 10:59:03 +0000 (10:59 +0000)
commit853dc30274878d14b7abef8313c801f5559b4c47
treeb9c38fc6bb6d5d2b9e577abfb83453db11d8ba6e
parent39fb51a123c125e36e9bcb67686b3e2945784250
ASoC: Fix resource leak in goni_wm8994.c

Properly free allocated resources in goni_init() error path.
Add missing snd_soc_unregister_dai() in goni_exit().

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/samsung/goni_wm8994.c