]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/pci/aw2/aw2-alsa.c
Merge branch 'topic/vmaster-update' into topic/docbook-fix
[linux-2.6-omap-h63xx.git] / sound / pci / aw2 / aw2-alsa.c
index c7c54e7748e9ac6fdbf09f1d4bb11f7106d1bfc3..8eea29fc42fe8b7d56769ba9d40de84f38fc400f 100644 (file)
@@ -368,9 +368,9 @@ static int __devinit snd_aw2_probe(struct pci_dev *pci,
        }
 
        /* (2) Create card instance */
-       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;
 
        /* (3) Create main component */
        err = snd_aw2_create(card, pci, &chip);