diff options
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 2 |
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); |