projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20d6606
)
ASoC: Add missing debugfs conditionals
author
Mark Brown
<
[email protected]
>
Mon, 7 Mar 2011 11:09:25 +0000
(11:09 +0000)
committer
Mark Brown
<
[email protected]
>
Mon, 7 Mar 2011 11:13:56 +0000
(11:13 +0000)
Signed-off-by: Mark Brown <
[email protected]
>
Acked-by: Liam Girdwood <
[email protected]
>
sound/soc/soc-core.c
patch
|
blob
|
history
diff --git
a/sound/soc/soc-core.c
b/sound/soc/soc-core.c
index 8926d38fc5a32c1cca592c1144fb2ac7095afc88..be34f6b95386f6b7872ea41345a222800cee3dff 100644
(file)
--- 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)
snd_soc_dapm_add_routes(&card->dapm, card->dapm_routes,
card->num_dapm_routes);
+#ifdef CONFIG_DEBUG_FS
card->dapm.debugfs_dapm = debugfs_create_dir("dapm",
card->debugfs_card_root);
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");
snd_soc_dapm_debugfs_init(&card->dapm);
+#endif
snprintf(card->snd_card->shortname, sizeof(card->snd_card->shortname),
"%s", card->name);