ASoC: sta32x: Fix a memory leak if snd_soc_register_codec fails
authorAxel Lin <axel.lin@gmail.com>
Sat, 13 Aug 2011 03:33:08 +0000 (11:33 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 15 Aug 2011 13:28:52 +0000 (22:28 +0900)
commit161d55c3ec4c7e26c96b11dc86caea0b3c9c6b0f
tree422d4cef906e9fcf84c6af18a2edf5ecc1dcf9e0
parentd2b4c7bd7eabfaa2e3e5b8107d5eeb56ac879813
ASoC: sta32x: Fix a memory leak if snd_soc_register_codec fails

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/sta32x.c