]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[ALSA] ca0106 - Add missing sysfs device assignment
authorTakashi Iwai <tiwai@suse.de>
Wed, 28 Mar 2007 20:40:35 +0000 (22:40 +0200)
committerAdrian Bunk <bunk@stusta.de>
Wed, 28 Mar 2007 20:40:35 +0000 (22:40 +0200)
Added the missing device assignment before creating sysfs tree.
This caused the insufficient device permissions.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
sound/pci/ca0106/ca0106_main.c

index cf84d4453af8df7a4e8f4b881896e7adff03fc2b..e307c1216e308ef58269d2319fc71d399ba8e80c 100644 (file)
@@ -1544,6 +1544,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;