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:
@@ -1830,7 +1830,7 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
|
|||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
printk(KERN_ERR "asoc: failed to register AC97 %s\n", card->name);
|
printk(KERN_ERR "asoc: failed to register AC97 %s\n", card->name);
|
||||||
while (--i >= 0)
|
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;
|
goto probe_aux_dev_err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user