Merge branch 'topic/hda' into for-linus
[linux-2.6.git] / sound / pci / hda / hda_intel.c
index 8b2e4160de8d94294c590f43721217e4de9796f3..30829ee920c3a8366ea841dbdb985787719b521e 100644 (file)
@@ -2387,10 +2387,10 @@ static int __devinit azx_probe(struct pci_dev *pci,
                return -ENOENT;
        }
 
-       card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0);
-       if (!card) {
+       err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card);
+       if (err < 0) {
                snd_printk(KERN_ERR SFX "Error creating card!\n");
-               return -ENOMEM;
+               return err;
        }
 
        err = azx_create(card, pci, dev, pci_id->driver_data, &chip);