]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/pci/ice1712/ice1724.c
Merge branch 'topic/rawmidi-fix' into for-linus
[linux-2.6-omap-h63xx.git] / sound / pci / ice1712 / ice1724.c
index bb8d8c766b9d1f5ee5e08f85a8a36694ac1b8058..7ff36d3f0f44f9078da5f08e8be89e8a32b0a485 100644 (file)
@@ -2456,9 +2456,9 @@ static int __devinit snd_vt1724_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;
 
        strcpy(card->driver, "ICE1724");
        strcpy(card->shortname, "ICEnsemble ICE1724");