diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-27 19:18:30 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-27 19:18:30 -0500 |
commit | 8d37a371b6869920e6c40c495c68eabba1ef3909 (patch) | |
tree | dad784512b13832f4f5494cfe0791965c6a2b0f6 /drivers/serial/serial_cs.c | |
parent | ef1a8de8ea004a689b2aa9f5cefcba2b1a0262f2 (diff) | |
parent | 7b4884ca8853a638df0eb5d251d80d67777b8b1a (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6: (49 commits)
pcmcia: validate late-added resources
pcmcia: allow for extension of resource interval
pcmcia: remove useless msleep in ds.c
pcmcia: use read_cis_mem return value
pcmcia: handle error in serial_cs config calls
pcmcia: add locking to pcmcia_{read,write}_cis_mem
pcmcia: avoid prod_id memleak
pcmcia: avoid sysfs-related lockup for cardbus
pcmcia: use state machine for extended requery
pcmcia: delay re-scanning and re-querying of PCMCIA bus
pcmcia: use pccardd to handle eject, insert, suspend and resume requests
pcmcia: use ops_mutex for rsrc_{mgr,nonstatic} locking
pcmcia: use mutex for dynid lock
pcmcia: assert locking to struct pcmcia_device
pcmcia: add locking documentation
pcmcia: simplify locking
pcmcia: add locking to struct pcmcia_socket->pcmcia_state()
pcmcia: protect s->device_count
pcmcia: properly lock skt->irq, skt->irq_mask
pcmcia: lock ops->set_socket
...
Diffstat (limited to 'drivers/serial/serial_cs.c')
-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 95421fa3b304..e91db4b38012 100644 --- a/drivers/serial/serial_cs.c +++ b/drivers/serial/serial_cs.c | |||
@@ -696,11 +696,11 @@ static int serial_config(struct pcmcia_device * link) | |||
696 | info->multi = info->quirk->multi; | 696 | info->multi = info->quirk->multi; |
697 | 697 | ||
698 | if (info->multi > 1) | 698 | if (info->multi > 1) |
699 | multi_config(link); | 699 | i = multi_config(link); |
700 | else | 700 | else |
701 | simple_config(link); | 701 | i = simple_config(link); |
702 | 702 | ||
703 | if (info->ndev == 0) | 703 | if (i || info->ndev == 0) |
704 | goto failed; | 704 | goto failed; |
705 | 705 | ||
706 | /* | 706 | /* |
@@ -715,6 +715,7 @@ static int serial_config(struct pcmcia_device * link) | |||
715 | return 0; | 715 | return 0; |
716 | 716 | ||
717 | failed: | 717 | failed: |
718 | dev_warn(&link->dev, "serial_cs: failed to initialize\n"); | ||
718 | serial_remove(link); | 719 | serial_remove(link); |
719 | return -ENODEV; | 720 | return -ENODEV; |
720 | } | 721 | } |