]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/pci/ali5451/ali5451.c
Merge branch 'topic/misc' into for-linus
[linux-2.6-omap-h63xx.git] / sound / pci / ali5451 / ali5451.c
index 9069c78c2dc7c04791bd038a66fda3ec472709de..4edf270a7809c3b20fa5997caf23acd42bb72968 100644 (file)
@@ -2307,9 +2307,9 @@ static int __devinit snd_ali_probe(struct pci_dev *pci,
 
        snd_ali_printk("probe ...\n");
 
-       card = snd_card_new(index, id, THIS_MODULE, 0);
-       if (!card)
-               return -ENOMEM;
+       err = snd_card_create(index, id, THIS_MODULE, 0, &card);
+       if (err < 0)
+               return err;
 
        err = snd_ali_create(card, pci, pcm_channels, spdif, &codec);
        if (err < 0)