Skip to contentSkip to conversation

xir2cps: use manf_id provided by the pcmcia core

RFC New Dominik Brodowski 1 participant 1 message Oct 17, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC 1/1 xir2cps: use manf_id provided by the pcmcia core

From: Dominik Brodowski <[email protected]>
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.

---
 drivers/net/pcmcia/xirc2ps_cs.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
drivers/net/pcmcia/xirc2ps_cs.c +2 -3
index cf84231..c576eda 100644
@@ -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;
Signature · 1 line
1.6.0.4