From: Atsushi Nemoto Date: Mon, 16 Mar 2009 14:26:20 +0000 (+0900) Subject: ASoC: Only deregister AC97 dev if it's name was not "AC97" X-Git-Tag: v2.6.30-rc1~8^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2314e0e27566f8830ebed3587cc049e07e6a4ee;p=pandora-kernel.git ASoC: Only deregister AC97 dev if it's name was not "AC97" The commit 14fa43f53ff3a9c3d8b9662574b7369812a31a97 ("ASoC: Only register AC97 bus if it's not done already") added a condition for calling of soc_ac97_dev_register() but not added for calling of soc_ac97_dev_unregister(). This patch adds same condition for soc_ac97_dev_unregister(). Without this fix, kernel crashes when unloading an asoc driver. Signed-off-by: Atsushi Nemoto Signed-off-by: Mark Brown --- Reading git-diff-tree failed