aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-08-20 01:04:54 -0400
committerMark Brown <broonie@kernel.org>2019-08-21 08:11:12 -0400
commitb03bfaec1d52123d5d941488f71e06964535e471 (patch)
tree9d5712440a275141ac302ca6a563c7b33d41c352 /sound
parentc1fe93581ae9d85c3a783b5fad21912bb88a0f34 (diff)
ASoC: soc-core: merge snd_soc_initialize_card_lists()
snd_soc_initialize_card_lists() is doing card related INIT_LIST_HEAD(), but, it is already doing at snd_soc_register_card(). We don't need to do it separately. This patch merges these. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Link: https://lore.kernel.org/r/877e781ldq.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-core.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index b3f820fb53e6..d428491d51a7 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -2370,15 +2370,18 @@ int snd_soc_register_card(struct snd_soc_card *card)
2370 2370
2371 dev_set_drvdata(card->dev, card); 2371 dev_set_drvdata(card->dev, card);
2372 2372
2373 snd_soc_initialize_card_lists(card); 2373 INIT_LIST_HEAD(&card->widgets);
2374 2374 INIT_LIST_HEAD(&card->paths);
2375 INIT_LIST_HEAD(&card->dapm_list);
2376 INIT_LIST_HEAD(&card->aux_comp_list);
2377 INIT_LIST_HEAD(&card->component_dev_list);
2378 INIT_LIST_HEAD(&card->list);
2375 INIT_LIST_HEAD(&card->dai_link_list); 2379 INIT_LIST_HEAD(&card->dai_link_list);
2376
2377 INIT_LIST_HEAD(&card->rtd_list); 2380 INIT_LIST_HEAD(&card->rtd_list);
2378 card->num_rtd = 0;
2379
2380 INIT_LIST_HEAD(&card->dapm_dirty); 2381 INIT_LIST_HEAD(&card->dapm_dirty);
2381 INIT_LIST_HEAD(&card->dobj_list); 2382 INIT_LIST_HEAD(&card->dobj_list);
2383
2384 card->num_rtd = 0;
2382 card->instantiated = 0; 2385 card->instantiated = 0;
2383 mutex_init(&card->mutex); 2386 mutex_init(&card->mutex);
2384 mutex_init(&card->dapm_mutex); 2387 mutex_init(&card->dapm_mutex);