Re: [PATCH] ASoC: Fix parameter for soc_unregister_ac97_dai_link

From: Liam Girdwood
Date: Wed Jan 12 2011 - 06:11:14 EST


On Wed, 2011-01-12 at 10:02 +0800, Axel Lin wrote:
> soc_unregister_ac97_dai_link takes a pointer to a codec.
>
> Reported-by: Mike Frysinger <vapier.adi@xxxxxxxxx>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>
> Cc: stable@xxxxxxxxxx [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;
> }
> }

Acked-by: Liam Girdwood <lrg@xxxxxxxxxxxxxxx>
--
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/