Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182007
b: refs/heads/master
c: a78621b
h: refs/heads/master
i:
  182005: f8b4920
  182003: a10590f
  181999: 6c01e3a
v: v3
  • Loading branch information
Dominik Brodowski committed Feb 17, 2010
1 parent 2f9887a commit 8fe3c5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7ab24855482fbc47712de46c05726d59cd0748e2
refs/heads/master: a78621bb11fbad32a3ef968c65f9b93858b3341a
7 changes: 4 additions & 3 deletions trunk/drivers/serial/serial_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,11 +695,11 @@ static int serial_config(struct pcmcia_device * link)
info->multi = info->quirk->multi;

if (info->multi > 1)
multi_config(link);
i = multi_config(link);
else
simple_config(link);
i = simple_config(link);

if (info->ndev == 0)
if (i || info->ndev == 0)
goto failed;

/*
Expand All @@ -714,6 +714,7 @@ static int serial_config(struct pcmcia_device * link)
return 0;

failed:
dev_warn(&link->dev, "serial_cs: failed to initialize\n");
serial_remove(link);
return -ENODEV;
}
Expand Down

0 comments on commit 8fe3c5f

Please sign in to comment.