aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-03-07 06:09:25 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-03-07 06:13:56 -0500
commita2721fd9fa6d4181fd66c58316d3893b597ba118 (patch)
tree1cb73aedf98725fbd02eea1a2ce5823df6ee4580
parent20d660653a488c1c88db6fe51c2459e00cb79230 (diff)
ASoC: Add missing debugfs conditionals
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
-rw-r--r--sound/soc/soc-core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 8926d38fc5a3..be34f6b95386 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1879,6 +1879,7 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
1879 snd_soc_dapm_add_routes(&card->dapm, card->dapm_routes, 1879 snd_soc_dapm_add_routes(&card->dapm, card->dapm_routes,
1880 card->num_dapm_routes); 1880 card->num_dapm_routes);
1881 1881
1882#ifdef CONFIG_DEBUG_FS
1882 card->dapm.debugfs_dapm = debugfs_create_dir("dapm", 1883 card->dapm.debugfs_dapm = debugfs_create_dir("dapm",
1883 card->debugfs_card_root); 1884 card->debugfs_card_root);
1884 if (!card->dapm.debugfs_dapm) 1885 if (!card->dapm.debugfs_dapm)
@@ -1886,6 +1887,7 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
1886 "Failed to create card DAPM debugfs directory\n"); 1887 "Failed to create card DAPM debugfs directory\n");
1887 1888
1888 snd_soc_dapm_debugfs_init(&card->dapm); 1889 snd_soc_dapm_debugfs_init(&card->dapm);
1890#endif
1889 1891
1890 snprintf(card->snd_card->shortname, sizeof(card->snd_card->shortname), 1892 snprintf(card->snd_card->shortname, sizeof(card->snd_card->shortname),
1891 "%s", card->name); 1893 "%s", card->name);