]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/drivers/serial-u16550.c
Merge branch 'topic/snd_card_new-err' into topic/drop-l3
[linux-2.6-omap-h63xx.git] / sound / drivers / serial-u16550.c
index ff0a41510945d1056de78797d18626e4570e1c1c..b2b6d50c942559fcb14474ff1e8281ae947e4db4 100644 (file)
@@ -942,9 +942,9 @@ static int __devinit snd_serial_probe(struct platform_device *devptr)
                return -ENODEV;
        }
 
-       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, "Serial");
        strcpy(card->shortname, "Serial MIDI (UART16550A)");