Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38204
b: refs/heads/master
c: 43549ad
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Russell King committed Oct 1, 2006
1 parent 614c170 commit 4c893fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: de6cc84f723ab4373d1f83e64771392d6f784c81
refs/heads/master: 43549ad7a74e33947f3ba1756a7713086d32e97c
11 changes: 5 additions & 6 deletions trunk/drivers/serial/serial_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ static const struct multi_id multi_id[] = {
{ MANFID_INTEL, PRODID_INTEL_DUAL_RS232, 2 },
{ MANFID_NATINST, PRODID_NATINST_QUAD_RS232, 4 }
};
#define MULTI_COUNT (sizeof(multi_id)/sizeof(struct multi_id))

struct serial_info {
struct pcmcia_device *p_dev;
Expand Down Expand Up @@ -622,13 +621,13 @@ static int serial_config(struct pcmcia_device * link)
tuple->DesiredTuple = CISTPL_MANFID;
if (first_tuple(link, tuple, parse) == CS_SUCCESS) {
info->manfid = parse->manfid.manf;
info->prodid = le16_to_cpu(buf[1]);
for (i = 0; i < MULTI_COUNT; i++)
info->prodid = parse->manfid.card;
for (i = 0; i < ARRAY_SIZE(multi_id); i++)
if ((info->manfid == multi_id[i].manfid) &&
(parse->manfid.card == multi_id[i].prodid))
(info->prodid == multi_id[i].prodid)) {
info->multi = multi_id[i].multi;
break;
if (i < MULTI_COUNT)
info->multi = multi_id[i].multi;
}
}

/* Another check for dual-serial cards: look for either serial or
Expand Down

0 comments on commit 4c893fb

Please sign in to comment.