aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pcmcia/smc91c92_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/pcmcia/smc91c92_cs.c')
-rw-r--r--drivers/net/pcmcia/smc91c92_cs.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/net/pcmcia/smc91c92_cs.c b/drivers/net/pcmcia/smc91c92_cs.c
index 7bde2cd34c7e..af03759d186d 100644
--- a/drivers/net/pcmcia/smc91c92_cs.c
+++ b/drivers/net/pcmcia/smc91c92_cs.c
@@ -545,6 +545,14 @@ static int mhz_setup(struct pcmcia_device *link)
545 u_char *buf, *station_addr; 545 u_char *buf, *station_addr;
546 int rc; 546 int rc;
547 547
548 /* Read the station address from the CIS. It is stored as the last
549 (fourth) string in the Version 1 Version/ID tuple. */
550 if ((link->prod_id[3]) &&
551 (cvt_ascii_address(dev, link->prod_id[3]) == 0))
552 return 0;
553
554 /* Workarounds for broken cards start here. */
555
548 cfg_mem = kmalloc(sizeof(struct smc_cfg_mem), GFP_KERNEL); 556 cfg_mem = kmalloc(sizeof(struct smc_cfg_mem), GFP_KERNEL);
549 if (!cfg_mem) 557 if (!cfg_mem)
550 return -1; 558 return -1;
@@ -557,8 +565,7 @@ static int mhz_setup(struct pcmcia_device *link)
557 tuple->TupleData = (cisdata_t *)buf; 565 tuple->TupleData = (cisdata_t *)buf;
558 tuple->TupleDataMax = 255; 566 tuple->TupleDataMax = 255;
559 567
560 /* Read the station address from the CIS. It is stored as the last 568 /* Ugh -- the EM1144 card has two VERS_1 tuples!?! */
561 (fourth) string in the Version 1 Version/ID tuple. */
562 tuple->DesiredTuple = CISTPL_VERS_1; 569 tuple->DesiredTuple = CISTPL_VERS_1;
563 if (first_tuple(link, tuple, parse) != 0) { 570 if (first_tuple(link, tuple, parse) != 0) {
564 rc = -1; 571 rc = -1;