Skip to content

Commit

Permalink
[ALSA] ca0106 - Add missing sysfs device assignment
Browse files Browse the repository at this point in the history
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: Jaroslav Kysela <perex@suse.cz>
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Feb 9, 2007
1 parent 547ac2a commit c6d6eee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/pci/ca0106/ca0106_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c6d6eee

Please sign in to comment.