From: Liam Girdwood Date: Fri, 13 Sep 2013 17:09:45 +0000 (+0100) Subject: ASoC: core: Only add platform DAI widgets once. X-Git-Tag: next-20130919~35^2~20^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ae10e7e8f;p=karo-tx-linux.git ASoC: core: Only add platform DAI widgets once. Currently platform CPU DAI widgets are created in soc_probe_platform and soc_probe_link_dais. Remove the extra call in soc_probe_link_dais(). Signed-off-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 4d0561312f3b..1a38be0d0ca8 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1380,7 +1380,6 @@ static int soc_probe_link_dais(struct snd_soc_card *card, int num, int order) return -ENODEV; list_add(&cpu_dai->dapm.list, &card->dapm_list); - snd_soc_dapm_new_dai_widgets(&cpu_dai->dapm, cpu_dai); } if (cpu_dai->driver->probe) {