aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-04-14 06:25:52 -0400
committerTakashi Iwai <tiwai@suse.de>2009-04-14 06:25:52 -0400
commit7852fd08fdc78bf43150137bdbfdfdccdefffe0f (patch)
tree7ed8ede1574341ee77ef22ab451a026c1b735a7b
parent02bec490450836ebbd628e97ec03f10b57def8ce (diff)
ALSA: lx6464es - Use snd_card_create()
Use snd_card_create() instead of the obsoleted snd_card_new(). Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/lx6464es/lx6464es.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/lx6464es/lx6464es.c b/sound/pci/lx6464es/lx6464es.c
index 7bc8b8caa992..870bfc58c697 100644
--- a/sound/pci/lx6464es/lx6464es.c
+++ b/sound/pci/lx6464es/lx6464es.c
@@ -1091,9 +1091,9 @@ static int __devinit snd_lx6464es_probe(struct pci_dev *pci,
1091 return -ENOENT; 1091 return -ENOENT;
1092 } 1092 }
1093 1093
1094 card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); 1094 err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card);
1095 if (card == NULL) 1095 if (err < 0)
1096 return -ENOMEM; 1096 return err;
1097 1097
1098 err = snd_lx6464es_create(card, pci, &chip); 1098 err = snd_lx6464es_create(card, pci, &chip);
1099 if (err < 0) { 1099 if (err < 0) {