]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/pci/intel8x0m.c
Merge branch 'topic/intel8x0' into for-linus
[linux-2.6-omap-h63xx.git] / sound / pci / intel8x0m.c
index 7c819fd824a5ca7c3c1968ef743c277dec6938d6..6ec0fc50d6be16bf064b27ca83e61b172deb045e 100644 (file)
@@ -1275,9 +1275,9 @@ static int __devinit snd_intel8x0m_probe(struct pci_dev *pci,
        int err;
        struct shortname_table *name;
 
-       card = snd_card_new(index, id, THIS_MODULE, 0);
-       if (card == NULL)
-               return -ENOMEM;
+       err = snd_card_create(index, id, THIS_MODULE, 0, &card);
+       if (err < 0)
+               return err;
 
        strcpy(card->driver, "ICH-MODEM");
        strcpy(card->shortname, "Intel ICH");