diff options
-rw-r--r-- | sound/soc/soc-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 318c3a720216..9c5e7cff3f01 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -1879,8 +1879,6 @@ static int soc_probe(struct platform_device *pdev) | |||
1879 | INIT_LIST_HEAD(&card->paths); | 1879 | INIT_LIST_HEAD(&card->paths); |
1880 | INIT_LIST_HEAD(&card->dapm_list); | 1880 | INIT_LIST_HEAD(&card->dapm_list); |
1881 | 1881 | ||
1882 | soc_init_card_debugfs(card); | ||
1883 | |||
1884 | ret = snd_soc_register_card(card); | 1882 | ret = snd_soc_register_card(card); |
1885 | if (ret != 0) { | 1883 | if (ret != 0) { |
1886 | dev_err(&pdev->dev, "Failed to register card\n"); | 1884 | dev_err(&pdev->dev, "Failed to register card\n"); |
@@ -3123,6 +3121,8 @@ static int snd_soc_register_card(struct snd_soc_card *card) | |||
3123 | if (!card->name || !card->dev) | 3121 | if (!card->name || !card->dev) |
3124 | return -EINVAL; | 3122 | return -EINVAL; |
3125 | 3123 | ||
3124 | soc_init_card_debugfs(card); | ||
3125 | |||
3126 | card->rtd = kzalloc(sizeof(struct snd_soc_pcm_runtime) * | 3126 | card->rtd = kzalloc(sizeof(struct snd_soc_pcm_runtime) * |
3127 | (card->num_links + card->num_aux_devs), | 3127 | (card->num_links + card->num_aux_devs), |
3128 | GFP_KERNEL); | 3128 | GFP_KERNEL); |