ASoC: Move kfree(twl4030) to twl4030_soc_remove()
authorAxel Lin <axel.lin@gmail.com>
Fri, 19 Nov 2010 09:31:08 +0000 (17:31 +0800)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Fri, 19 Nov 2010 12:14:47 +0000 (12:14 +0000)
commit5b3b0fa8fb0db9645b56361cdc9a9d0ddbc35e4d
tree8c360d75728a96a5064bb609e87d13647b02c8ca
parent0656f6cf6c394ede78657595dd5a8ca7a1e64853
ASoC: Move kfree(twl4030) to twl4030_soc_remove()

As we allocate memory for twl4030 in twl4030_codec_probe(),
twl4030_codec_remove() is a better place to free the memory.

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