diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-06-04 12:06:13 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-12-04 20:09:21 -0500 |
commit | a9606fd39083478bef313c0e3b77bc065e39e36e (patch) | |
tree | d9ee62f811e557671fad5cecf669f93300b6c57a /drivers/net/wireless/ray_cs.c | |
parent | efd50585e2ff9bd60e044fda7764d323010a7fe4 (diff) |
[PATCH] pcmcia: remove prod_id indirection
As we read out the product information strings (VERS_1) from the PCMCIA device
in the PCMCIA core, and device drivers can access those reliably in struct
pcmcia_device's fields prod_id[], remove additional product information string
detection logic from PCMCIA device drivers.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/net/wireless/ray_cs.c')
-rw-r--r-- | drivers/net/wireless/ray_cs.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c index 7fbfc9e41d07..75cdc3e5852a 100644 --- a/drivers/net/wireless/ray_cs.c +++ b/drivers/net/wireless/ray_cs.c | |||
@@ -433,16 +433,11 @@ static int ray_config(struct pcmcia_device *link) | |||
433 | 433 | ||
434 | /* Determine card type and firmware version */ | 434 | /* Determine card type and firmware version */ |
435 | buf[0] = buf[MAX_TUPLE_SIZE - 1] = 0; | 435 | buf[0] = buf[MAX_TUPLE_SIZE - 1] = 0; |
436 | tuple.DesiredTuple = CISTPL_VERS_1; | 436 | printk(KERN_INFO "ray_cs Detected: %s%s%s%s\n", |
437 | CS_CHECK(GetFirstTuple, pcmcia_get_first_tuple(link, &tuple)); | 437 | link->prod_id[0] ? link->prod_id[0] : " ", |
438 | tuple.TupleData = buf; | 438 | link->prod_id[1] ? link->prod_id[1] : " ", |
439 | tuple.TupleDataMax = MAX_TUPLE_SIZE; | 439 | link->prod_id[2] ? link->prod_id[2] : " ", |
440 | tuple.TupleOffset = 2; | 440 | link->prod_id[3] ? link->prod_id[3] : " "); |
441 | CS_CHECK(GetTupleData, pcmcia_get_tuple_data(link, &tuple)); | ||
442 | |||
443 | for (i=0; i<tuple.TupleDataLen - 4; i++) | ||
444 | if (buf[i] == 0) buf[i] = ' '; | ||
445 | printk(KERN_INFO "ray_cs Detected: %s\n",buf); | ||
446 | 441 | ||
447 | /* Now allocate an interrupt line. Note that this does not | 442 | /* Now allocate an interrupt line. Note that this does not |
448 | actually assign a handler to the interrupt. | 443 | actually assign a handler to the interrupt. |