浏览代码

ASoC: Add missing debugfs conditionals

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Mark Brown 14 年之前
父节点
当前提交
a2721fd9fa
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      sound/soc/soc-core.c

+ 2 - 0
sound/soc/soc-core.c

@@ -1879,6 +1879,7 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
 		snd_soc_dapm_add_routes(&card->dapm, card->dapm_routes,
 		snd_soc_dapm_add_routes(&card->dapm, card->dapm_routes,
 					card->num_dapm_routes);
 					card->num_dapm_routes);
 
 
+#ifdef CONFIG_DEBUG_FS
 	card->dapm.debugfs_dapm = debugfs_create_dir("dapm",
 	card->dapm.debugfs_dapm = debugfs_create_dir("dapm",
 						     card->debugfs_card_root);
 						     card->debugfs_card_root);
 	if (!card->dapm.debugfs_dapm)
 	if (!card->dapm.debugfs_dapm)
@@ -1886,6 +1887,7 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
 		       "Failed to create card DAPM debugfs directory\n");
 		       "Failed to create card DAPM debugfs directory\n");
 
 
 	snd_soc_dapm_debugfs_init(&card->dapm);
 	snd_soc_dapm_debugfs_init(&card->dapm);
+#endif
 
 
 	snprintf(card->snd_card->shortname, sizeof(card->snd_card->shortname),
 	snprintf(card->snd_card->shortname, sizeof(card->snd_card->shortname),
 		 "%s",  card->name);
 		 "%s",  card->name);