ASoC: phycore-ac97: fix resource leak
authorAxel Lin <axel.lin@gmail.com>
Thu, 25 Nov 2010 07:14:03 +0000 (15:14 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 25 Nov 2010 11:10:11 +0000 (11:10 +0000)
commit09de9533348632fbbf32ce618f669882aa718817
tree79630544789dadefefdd911fa9407a9f1a948c95
parentac8f924af555573e29b126ac5cef4fdd122ae517
ASoC: phycore-ac97: fix resource leak

Fix imx_phycore_init() error path and imx_phycore_exit() to properly free
allocated resources.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/imx/phycore-ac97.c