Commit 7852fd08 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: lx6464es - Use snd_card_create()

Use snd_card_create() instead of the obsoleted snd_card_new().
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 02bec490
...@@ -1091,9 +1091,9 @@ static int __devinit snd_lx6464es_probe(struct pci_dev *pci, ...@@ -1091,9 +1091,9 @@ static int __devinit snd_lx6464es_probe(struct pci_dev *pci,
return -ENOENT; return -ENOENT;
} }
card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card);
if (card == NULL) if (err < 0)
return -ENOMEM; return err;
err = snd_lx6464es_create(card, pci, &chip); err = snd_lx6464es_create(card, pci, &chip);
if (err < 0) { if (err < 0) {
......
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