diff options
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 71585d0562fa..3f18fa7f090d 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -1559,6 +1559,8 @@ static int snd_soc_instantiate_card(struct snd_soc_card *card) | |||
1559 | goto base_error; | 1559 | goto base_error; |
1560 | } | 1560 | } |
1561 | 1561 | ||
1562 | soc_init_card_debugfs(card); | ||
1563 | |||
1562 | card->dapm.bias_level = SND_SOC_BIAS_OFF; | 1564 | card->dapm.bias_level = SND_SOC_BIAS_OFF; |
1563 | card->dapm.dev = card->dev; | 1565 | card->dapm.dev = card->dev; |
1564 | card->dapm.card = card; | 1566 | card->dapm.card = card; |
@@ -1680,8 +1682,6 @@ static int snd_soc_instantiate_card(struct snd_soc_card *card) | |||
1680 | mutex_unlock(&card->mutex); | 1682 | mutex_unlock(&card->mutex); |
1681 | mutex_unlock(&client_mutex); | 1683 | mutex_unlock(&client_mutex); |
1682 | 1684 | ||
1683 | soc_init_card_debugfs(card); | ||
1684 | |||
1685 | return 0; | 1685 | return 0; |
1686 | 1686 | ||
1687 | probe_aux_dev_err: | 1687 | probe_aux_dev_err: |
@@ -1695,6 +1695,7 @@ card_probe_error: | |||
1695 | if (card->remove) | 1695 | if (card->remove) |
1696 | card->remove(card); | 1696 | card->remove(card); |
1697 | 1697 | ||
1698 | soc_cleanup_card_debugfs(card); | ||
1698 | snd_card_free(card->snd_card); | 1699 | snd_card_free(card->snd_card); |
1699 | 1700 | ||
1700 | base_error: | 1701 | base_error: |