ASoC: core: indicate unregister debug message once
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 5 Feb 2015 05:34:10 +0000 (05:34 +0000)
committerMark Brown <broonie@kernel.org>
Sun, 8 Feb 2015 03:11:51 +0000 (11:11 +0800)
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>
sound/soc/soc-core.c

index 54925dc..4bfabc7 100644 (file)
@@ -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;
 }