Merge branch 'topic/ice' into for-linus
[linux-2.6.git] / sound / pci / ice1712 / ice1712.c
index dcd3f4f89b445fedc44434a579251af44ec279ad..3dd63f1cda5363ac6823c5423323eccebe66a239 100644 (file)
@@ -2648,9 +2648,9 @@ static int __devinit snd_ice1712_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, "ICE1712");
        strcpy(card->shortname, "ICEnsemble ICE1712");