ASoC: Fix resource leak in smdk_spdif.c
authorAxel Lin <axel.lin@gmail.com>
Fri, 26 Nov 2010 06:54:42 +0000 (14:54 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 29 Nov 2010 11:01:06 +0000 (11:01 +0000)
commitd482337eaba627348ffb8b7c0752d65e16667cd9
tree8401fb0e0b6df8f8452b750fe8831be24bb3c695
parent3790f205465f5c47a3629129af875c94f61f1fd3
ASoC: Fix resource leak in smdk_spdif.c

Properly free allocated resources in smdk_init() error path.
Add missing platform_device_unregister() in smdk_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/smdk_spdif.c