From: Harsha Priya Date: Wed, 5 Jan 2011 06:04:51 +0000 (+0530) Subject: ASoC: Fix the device references to codec and platform drivers X-Git-Tag: v2.6.38-rc1~236^2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6c2ed5dd6ab43447dacc136585fc894e3f3a82d;p=pandora-kernel.git ASoC: Fix the device references to codec and platform drivers The soc-core takes the platform and codec driver reference during probe. Few of these references are not released during remove. This cause the platform and codec driver module unload to fail. This patch fixes by the taking only one reference to platform and codec module during probe and releases them correctly during remove. This allows load/unload properly Signed-off-by: Vinod Koul Signed-off-by: Harsha Priya Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed