From: Takashi Iwai Date: Thu, 8 Feb 2007 13:50:31 +0000 (+0100) Subject: [ALSA] ca0106 - Add missing sysfs device assignment X-Git-Tag: v2.6.21-rc1~83^2~62^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c6d6eeeacc2ed0b736f20692ca021324f3b203b3;p=linux-2.6-omap-h63xx.git [ALSA] ca0106 - Add missing sysfs device assignment Added the missing device assignment before creating sysfs tree. This caused the insufficient device permissions. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c index 6f781b81187..ea6712b63c9 100644 --- a/sound/pci/ca0106/ca0106_main.c +++ b/sound/pci/ca0106/ca0106_main.c @@ -1618,6 +1618,8 @@ static int __devinit snd_ca0106_probe(struct pci_dev *pci, snd_ca0106_proc_init(chip); #endif + snd_card_set_dev(card, &pci->dev); + if ((err = snd_card_register(card)) < 0) { snd_card_free(card); return err;