From: Takashi Iwai Date: Mon, 26 Nov 2007 07:45:43 +0000 (+0100) Subject: [ALSA] emu10k1x - Add missing snd_card_set_dev call X-Git-Tag: v2.6.25-rc1~1127^2~224 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=682fc0a5fe1a309a9a1860a0d50a2c6977d961cd;p=linux-2.6-omap-h63xx.git [ALSA] emu10k1x - Add missing snd_card_set_dev call Added the missing snd_card_set_dev() call. This will fix the incomplete sysfs entry for this card. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/sound/pci/emu10k1/emu10k1x.c b/sound/pci/emu10k1/emu10k1x.c index 1ec7ebaff9e..0030d8b8466 100644 --- a/sound/pci/emu10k1/emu10k1x.c +++ b/sound/pci/emu10k1/emu10k1x.c @@ -1583,6 +1583,8 @@ static int __devinit snd_emu10k1x_probe(struct pci_dev *pci, sprintf(card->longname, "%s at 0x%lx irq %i", card->shortname, chip->port, chip->irq); + snd_card_set_dev(card, &pci->dev); + if ((err = snd_card_register(card)) < 0) { snd_card_free(card); return err;