[2/5] ASoC: Remove unused 'list' field form card
diff mbox

Message ID 1399361981-18518-3-git-send-email-lars@metafoo.de
State Accepted
Commit af0881ffbd7bfc825c2871c79798d66e3608a50c
Headers show

Commit Message

Lars-Peter Clausen May 6, 2014, 7:39 a.m. UTC
The global card list was removed in commit b19e6e7b7 ("ASoC: core: Use driver
core probe deferral"). The 'list' field of the snd_soc_card struct has been
unused since then. This patch removes the field.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
 include/sound/soc.h  | 1 -
 sound/soc/soc-core.c | 1 -
 2 files changed, 2 deletions(-)

Comments

Mark Brown May 7, 2014, 9:21 a.m. UTC | #1
On Tue, May 06, 2014 at 09:39:38AM +0200, Lars-Peter Clausen wrote:
> The global card list was removed in commit b19e6e7b7 ("ASoC: core: Use driver
> core probe deferral"). The 'list' field of the snd_soc_card struct has been
> unused since then. This patch removes the field.

Applied, thanks.

Patch
diff mbox

diff --git a/include/sound/soc.h b/include/sound/soc.h
index 30c068f..5603020 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -949,7 +949,6 @@  struct snd_soc_card {
 	struct snd_card *snd_card;
 	struct module *owner;
 
-	struct list_head list;
 	struct mutex mutex;
 	struct mutex dapm_mutex;
 
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 24c1fc2..cc62526 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -3733,7 +3733,6 @@  int snd_soc_register_card(struct snd_soc_card *card)
 	for (i = 0; i < card->num_links; i++)
 		card->rtd[i].dai_link = &card->dai_link[i];
 
-	INIT_LIST_HEAD(&card->list);
 	INIT_LIST_HEAD(&card->dapm_dirty);
 	card->instantiated = 0;
 	mutex_init(&card->mutex);