diff options
Diffstat (limited to 'sound/drivers/serial-u16550.c')
-rw-r--r-- | sound/drivers/serial-u16550.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/drivers/serial-u16550.c b/sound/drivers/serial-u16550.c index ff0a41510945..b2b6d50c9425 100644 --- a/sound/drivers/serial-u16550.c +++ b/sound/drivers/serial-u16550.c | |||
@@ -942,9 +942,9 @@ static int __devinit snd_serial_probe(struct platform_device *devptr) | |||
942 | return -ENODEV; | 942 | return -ENODEV; |
943 | } | 943 | } |
944 | 944 | ||
945 | card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); | 945 | err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card); |
946 | if (card == NULL) | 946 | if (err < 0) |
947 | return -ENOMEM; | 947 | return err; |
948 | 948 | ||
949 | strcpy(card->driver, "Serial"); | 949 | strcpy(card->driver, "Serial"); |
950 | strcpy(card->shortname, "Serial MIDI (UART16550A)"); | 950 | strcpy(card->shortname, "Serial MIDI (UART16550A)"); |