ASoC: sam9g20_wm8731: fix resource leak in at91sam9g20ek_init error path
authorAxel Lin <axel.lin@gmail.com>
Thu, 25 Nov 2010 07:11:03 +0000 (15:11 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 25 Nov 2010 11:09:19 +0000 (11:09 +0000)
commitc7a734e58ed237ecac2608a70eb31ba64e21c768
tree96f7e8b3ea3ecd62f7cdf33917a75cb55294aeb2
parentb193deead8637291138a8c1c49753ee686fa5b17
ASoC: sam9g20_wm8731: fix resource leak in at91sam9g20ek_init error path

Fix the error path to properly free allocated resources.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/atmel/sam9g20_wm8731.c