]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: TWL4030: Module unloading fix
authorPeter Ujfalusi <peter.ujfalusi@nokia.com>
Thu, 4 Feb 2010 07:10:10 +0000 (09:10 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 4 Feb 2010 10:49:04 +0000 (10:49 +0000)
commit36fdf619c90977407f7af7e4affd4e189dde37fa
tree5b70af8eb311dc44db47eec4aae68c3b945e055c
parenta98e2e9c6a8fadfa9d87974486efeb6218a6b9dc
ASoC: TWL4030: Module unloading fix

The module unloading path had several problems:
- it freed up the private structure twice
- it freed up the codec structure, which was allocated as part
  of the private structure
- it did not freed up the reg_cache
- it did not unregistered the dais and the codec

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/twl4030.c