From: Axel Lin Date: Fri, 23 Jul 2010 05:53:48 +0000 (+0000) Subject: ASoC: wm8904: fix resource reclaim in wm8904_register error path X-Git-Tag: v2.6.36-rc1~493^2~1^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62f5ad6733b872e14d671b615850eb5bd1cd7e30;p=pandora-kernel.git 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 Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed