]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/pci/echoaudio/echoaudio.c
Merge branch 'topic/echoaudio' into for-linus
[linux-2.6-omap-h63xx.git] / sound / pci / echoaudio / echoaudio.c
index 4b70ea1e4c9fa3dc903dec8cf69235c97c2173ad..da2065cd2c0d5c3ffd5783b98c90ebfbc4ee244c 100644 (file)
@@ -1988,9 +1988,9 @@ static int __devinit snd_echo_probe(struct pci_dev *pci,
 
        DE_INIT(("Echoaudio driver starting...\n"));
        i = 0;
-       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;
 
        snd_card_set_dev(card, &pci->dev);