ASoC: Fix AC'97 registration unwind
soc_unregister_ac97_dai_link() takes a CODEC as an argument, not a rtd like the registration function, so give it what it's looking for. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
parent
0f0e25282b
commit
7d8316df44
|
@ -1830,7 +1830,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_aux_dev_err;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue