diff options
-rw-r--r-- | drivers/serial/serial_cs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/serial/serial_cs.c b/drivers/serial/serial_cs.c index 0ee7239c5d69..8d38eabda826 100644 --- a/drivers/serial/serial_cs.c +++ b/drivers/serial/serial_cs.c | |||
@@ -695,11 +695,11 @@ static int serial_config(struct pcmcia_device * link) | |||
695 | info->multi = info->quirk->multi; | 695 | info->multi = info->quirk->multi; |
696 | 696 | ||
697 | if (info->multi > 1) | 697 | if (info->multi > 1) |
698 | multi_config(link); | 698 | i = multi_config(link); |
699 | else | 699 | else |
700 | simple_config(link); | 700 | i = simple_config(link); |
701 | 701 | ||
702 | if (info->ndev == 0) | 702 | if (i || info->ndev == 0) |
703 | goto failed; | 703 | goto failed; |
704 | 704 | ||
705 | /* | 705 | /* |
@@ -714,6 +714,7 @@ static int serial_config(struct pcmcia_device * link) | |||
714 | return 0; | 714 | return 0; |
715 | 715 | ||
716 | failed: | 716 | failed: |
717 | dev_warn(&link->dev, "serial_cs: failed to initialize\n"); | ||
717 | serial_remove(link); | 718 | serial_remove(link); |
718 | return -ENODEV; | 719 | return -ENODEV; |
719 | } | 720 | } |