commit | 62f5ad6733b872e14d671b615850eb5bd1cd7e30 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@gmail.com> | Fri Jul 23 05:53:48 2010 +0000 |
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | Tue Aug 03 07:45:00 2010 +0100 |
tree | 95371314dedc70e7f870a2621765c5f1cc9027a1 | |
parent | 2c2749de118bd36645b3a4a56f0d8ef6d4fd09cf [diff] |
ASoC: wm8904: fix resource reclaim in wm8904_register error path This patch includes below fixes: 1. wm8904 need to be kfreed in wm8904_register() error path before return. 2. fix the error path for snd_soc_register_codec() fail and snd_soc_register_dai() fail to properly free 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>