[RFC] xir2cps: use manf_id provided by the pcmcia core
Dominik Brodowski
linux at dominikbrodowski.net
Sat Oct 17 13:10:16 EDT 2009
From: Dominik Brodowski <linux at dominikbrodowski.net>
Date: Sat, 17 Oct 2009 18:25:48 +0200
Subject: [PATCH 5/5] xir2cps: use manf_id provided by the pcmcia core
Instead of detecting it on its own, use the value provided by the pcmcia
core.
CC: netdev at vger.kernel.org
CC: David S. Miller <davem at davemloft.net>
Signed-off-by: Dominik Brodowski <linux at dominikbrodowski.net>
---
drivers/net/pcmcia/xirc2ps_cs.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/net/pcmcia/xirc2ps_cs.c b/drivers/net/pcmcia/xirc2ps_cs.c
index cf84231..c576eda 100644
--- a/drivers/net/pcmcia/xirc2ps_cs.c
+++ b/drivers/net/pcmcia/xirc2ps_cs.c
@@ -792,13 +792,12 @@ xirc2ps_config(struct pcmcia_device * link)
tuple.TupleOffset = 0;
/* Is this a valid card */
- tuple.DesiredTuple = CISTPL_MANFID;
- if ((err=first_tuple(link, &tuple, &parse))) {
+ if (link->has_manf_id == 0) {
printk(KNOT_XIRC "manfid not found in CIS\n");
goto failure;
}
- switch(parse.manfid.manf) {
+ switch(link->manf_id) {
case MANFID_XIRCOM:
local->manf_str = "Xircom";
break;
--
1.6.0.4
More information about the linux-pcmcia
mailing list