summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2015-02-05 08:34:10 +0300
committerMark Brown <broonie@kernel.org>2015-02-08 06:11:51 +0300
commit8f6f9b2982b2c924fe2dde816e2decb3ca1d8f8f (patch)
tree59f5be7562d8f2311bd7d65a8e9690693cfdf07b /sound
parentd29697dc3b92cb12a80632a5ade4fa26fd98225e (diff)
downloadlinux-8f6f9b2982b2c924fe2dde816e2decb3ca1d8f8f.tar.xz
ASoC: core: indicate unregister debug message once
Current snd_soc_unregister_card() indicates unregistered debug message when it was called. But, it should be called only when it was really unregistered. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 54925dc84a96..4bfabc776e21 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -2396,8 +2396,8 @@ int snd_soc_unregister_card(struct snd_soc_card *card)
card->instantiated = false;
snd_soc_dapm_shutdown(card);
soc_cleanup_card_resources(card);
+ dev_dbg(card->dev, "ASoC: Unregistered card '%s'\n", card->name);
}
- dev_dbg(card->dev, "ASoC: Unregistered card '%s'\n", card->name);
return 0;
}