public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: Fix parameter for soc_unregister_ac97_dai_link
@ 2011-01-12  2:02 Axel Lin
  2011-01-12  2:18 ` Mike Frysinger
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Axel Lin @ 2011-01-12  2:02 UTC (permalink / raw)
  To: linux-kernel; +Cc: Mike Frysinger, Liam Girdwood, Mark Brown, stable

soc_unregister_ac97_dai_link takes a pointer to a codec.

Reported-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: stable@kernel.org  [2.6.37]
---
 sound/soc/soc-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 85b7d54..e061ece 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1623,7 +1623,7 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
 		if (ret < 0) {
 			printk(KERN_ERR "asoc: failed to register AC97 %s\n", card->name);
 			while (--i >= 0)
-				soc_unregister_ac97_dai_link(&card->rtd[i]);
+				soc_unregister_ac97_dai_link(card->rtd[i].codec);
 			goto probe_dai_err;
 		}
 	}
-- 
1.7.2




^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-01-12 15:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-12  2:02 [PATCH] ASoC: Fix parameter for soc_unregister_ac97_dai_link Axel Lin
2011-01-12  2:18 ` Mike Frysinger
2011-01-12 11:11 ` Liam Girdwood
2011-01-12 15:06 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox