]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/pci/es1938.c
Merge branch 'topic/snd_card_new-err' into topic/drop-l3
[linux-2.6-omap-h63xx.git] / sound / pci / es1938.c
index e4ba84bed4ade88cee7d8d725dd93468896a481c..dd63b132fb8efc0a3070976a2eca838e4812e550 100644 (file)
@@ -1806,9 +1806,9 @@ static int __devinit snd_es1938_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;
        for (idx = 0; idx < 5; idx++) {
                if (pci_resource_start(pci, idx) == 0 ||
                    !(pci_resource_flags(pci, idx) & IORESOURCE_IO)) {