aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pcmcia/xirc2ps_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/pcmcia/xirc2ps_cs.c')
-rw-r--r--drivers/net/pcmcia/xirc2ps_cs.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/net/pcmcia/xirc2ps_cs.c b/drivers/net/pcmcia/xirc2ps_cs.c
index cf842310253..5e203230144 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)
792 tuple.TupleOffset = 0; 792 tuple.TupleOffset = 0;
793 793
794 /* Is this a valid card */ 794 /* Is this a valid card */
795 tuple.DesiredTuple = CISTPL_MANFID; 795 if (link->has_manf_id == 0) {
796 if ((err=first_tuple(link, &tuple, &parse))) {
797 printk(KNOT_XIRC "manfid not found in CIS\n"); 796 printk(KNOT_XIRC "manfid not found in CIS\n");
798 goto failure; 797 goto failure;
799 } 798 }
800 799
801 switch(parse.manfid.manf) { 800 switch (link->manf_id) {
802 case MANFID_XIRCOM: 801 case MANFID_XIRCOM:
803 local->manf_str = "Xircom"; 802 local->manf_str = "Xircom";
804 break; 803 break;
@@ -822,6 +821,13 @@ xirc2ps_config(struct pcmcia_device * link)
822 } 821 }
823 DEBUG(0, "found %s card\n", local->manf_str); 822 DEBUG(0, "found %s card\n", local->manf_str);
824 823
824 /* needed for the additional fields to be parsed by set_card_type() */
825 tuple.DesiredTuple = CISTPL_MANFID;
826 err = first_tuple(link, &tuple, &parse)
827 if (err) {
828 printk(KNOT_XIRC "manfid not found in CIS\n");
829 goto failure;
830 }
825 if (!set_card_type(link, buf)) { 831 if (!set_card_type(link, buf)) {
826 printk(KNOT_XIRC "this card is not supported\n"); 832 printk(KNOT_XIRC "this card is not supported\n");
827 goto failure; 833 goto failure;