Commit f78dfac9 authored by Takashi Iwai's avatar Takashi Iwai Committed by Jaroslav Kysela

[ALSA] Add missing device link

Added the missing link to struct device from the card instance.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent 48ecb7e8
...@@ -352,6 +352,7 @@ static int __devinit pxa2xx_ac97_probe(struct platform_device *dev) ...@@ -352,6 +352,7 @@ static int __devinit pxa2xx_ac97_probe(struct platform_device *dev)
snprintf(card->longname, sizeof(card->longname), snprintf(card->longname, sizeof(card->longname),
"%s (%s)", dev->dev.driver->name, card->mixername); "%s (%s)", dev->dev.driver->name, card->mixername);
snd_card_set_dev(card, &dev->dev);
ret = snd_card_register(card); ret = snd_card_register(card);
if (ret == 0) { if (ret == 0) {
platform_set_drvdata(dev, card); platform_set_drvdata(dev, card);
......
...@@ -129,6 +129,8 @@ static int snd_pdacf_probe(struct pcmcia_device *link) ...@@ -129,6 +129,8 @@ static int snd_pdacf_probe(struct pcmcia_device *link)
return -ENODEV; return -ENODEV;
} }
snd_card_set_dev(card, &handle_to_dev(link));
pdacf->index = i; pdacf->index = i;
card_list[i] = card; card_list[i] = card;
......
...@@ -954,6 +954,7 @@ static int __init snd_ps3_driver_probe(struct ps3_system_bus_device *dev) ...@@ -954,6 +954,7 @@ static int __init snd_ps3_driver_probe(struct ps3_system_bus_device *dev)
snd_ps3_init_avsetting(&the_card); snd_ps3_init_avsetting(&the_card);
/* register the card */ /* register the card */
snd_card_set_dev(the_card.card, &dev->core);
ret = snd_card_register(the_card.card); ret = snd_card_register(the_card.card);
if (ret < 0) if (ret < 0)
goto clean_dma_map; goto clean_dma_map;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment