]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/pci/azt3328.c
Merge branch 'topic/snd_card_new-err' into topic/drop-l3
[linux-2.6-omap-h63xx.git] / sound / pci / azt3328.c
index 8121763b0c104d6145366372987729b7a8e8cb69..e9e9b5821d41f1c4287b96a1115a11a928b534e4 100644 (file)
@@ -2216,9 +2216,9 @@ snd_azf3328_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
                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, "AZF3328");
        strcpy(card->shortname, "Aztech AZF3328 (PCI168)");