Skip to content

Commit

Permalink
ALSA: lx6464es - Use snd_card_create()
Browse files Browse the repository at this point in the history
Use snd_card_create() instead of the obsoleted snd_card_new().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Apr 14, 2009
1 parent 02bec49 commit 7852fd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sound/pci/lx6464es/lx6464es.c
Original file line number Diff line number Diff line change
Expand Up @@ -1091,9 +1091,9 @@ static int __devinit snd_lx6464es_probe(struct pci_dev *pci,
return -ENOENT;
}

card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0);
if (card == NULL)
return -ENOMEM;
err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card);
if (err < 0)
return err;

err = snd_lx6464es_create(card, pci, &chip);
if (err < 0) {
Expand Down

0 comments on commit 7852fd0

Please sign in to comment.