diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-01-15 06:43:16 -0500 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-03-31 10:15:55 -0500 |
commit | 70294b468302fd7a0a99dad935c7ba5322989345 (patch) | |
tree | e54b0b7c85517ef717f3755e06ca08fbb0f5937e /drivers/net/wireless/hostap | |
parent | 4bbed5231468014b500b048d7370a1c6c349231a (diff) |
[PATCH] pcmcia: remove unneeded Vcc pseudo setting
As we do not allow setting Vcc in the pcmcia core, and Vpp1 and
Vpp2 can only be set to the same value, a lot of code can be
streamlined.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/net/wireless/hostap')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_cs.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/drivers/net/wireless/hostap/hostap_cs.c b/drivers/net/wireless/hostap/hostap_cs.c index 0fb625185452..69024bfb5bba 100644 --- a/drivers/net/wireless/hostap/hostap_cs.c +++ b/drivers/net/wireless/hostap/hostap_cs.c | |||
@@ -512,7 +512,6 @@ static int prism2_attach(struct pcmcia_device *p_dev) | |||
512 | memset(link, 0, sizeof(dev_link_t)); | 512 | memset(link, 0, sizeof(dev_link_t)); |
513 | 513 | ||
514 | PDEBUG(DEBUG_HW, "%s: setting Vcc=33 (constant)\n", dev_info); | 514 | PDEBUG(DEBUG_HW, "%s: setting Vcc=33 (constant)\n", dev_info); |
515 | link->conf.Vcc = 33; | ||
516 | link->conf.IntType = INT_MEMORY_AND_IO; | 515 | link->conf.IntType = INT_MEMORY_AND_IO; |
517 | 516 | ||
518 | link->handle = p_dev; | 517 | link->handle = p_dev; |
@@ -603,9 +602,6 @@ static int prism2_config(dev_link_t *link) | |||
603 | 602 | ||
604 | CS_CHECK(GetConfigurationInfo, | 603 | CS_CHECK(GetConfigurationInfo, |
605 | pcmcia_get_configuration_info(link->handle, &conf)); | 604 | pcmcia_get_configuration_info(link->handle, &conf)); |
606 | PDEBUG(DEBUG_HW, "%s: %s Vcc=%d (from config)\n", dev_info, | ||
607 | ignore_cis_vcc ? "ignoring" : "setting", conf.Vcc); | ||
608 | link->conf.Vcc = conf.Vcc; | ||
609 | 605 | ||
610 | /* Look for an appropriate configuration table entry in the CIS */ | 606 | /* Look for an appropriate configuration table entry in the CIS */ |
611 | tuple.DesiredTuple = CISTPL_CFTABLE_ENTRY; | 607 | tuple.DesiredTuple = CISTPL_CFTABLE_ENTRY; |
@@ -650,10 +646,10 @@ static int prism2_config(dev_link_t *link) | |||
650 | } | 646 | } |
651 | 647 | ||
652 | if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM)) | 648 | if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM)) |
653 | link->conf.Vpp1 = link->conf.Vpp2 = | 649 | link->conf.Vpp = |
654 | cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000; | 650 | cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000; |
655 | else if (dflt.vpp1.present & (1 << CISTPL_POWER_VNOM)) | 651 | else if (dflt.vpp1.present & (1 << CISTPL_POWER_VNOM)) |
656 | link->conf.Vpp1 = link->conf.Vpp2 = | 652 | link->conf.Vpp = |
657 | dflt.vpp1.param[CISTPL_POWER_VNOM] / 10000; | 653 | dflt.vpp1.param[CISTPL_POWER_VNOM] / 10000; |
658 | 654 | ||
659 | /* Do we need to allocate an interrupt? */ | 655 | /* Do we need to allocate an interrupt? */ |
@@ -745,12 +741,11 @@ static int prism2_config(dev_link_t *link) | |||
745 | dev->base_addr = link->io.BasePort1; | 741 | dev->base_addr = link->io.BasePort1; |
746 | 742 | ||
747 | /* Finally, report what we've done */ | 743 | /* Finally, report what we've done */ |
748 | printk(KERN_INFO "%s: index 0x%02x: Vcc %d.%d", | 744 | printk(KERN_INFO "%s: index 0x%02x: ", |
749 | dev_info, link->conf.ConfigIndex, | 745 | dev_info, link->conf.ConfigIndex); |
750 | link->conf.Vcc / 10, link->conf.Vcc % 10); | 746 | if (link->conf.Vpp) |
751 | if (link->conf.Vpp1) | 747 | printk(", Vpp %d.%d", link->conf.Vpp / 10, |
752 | printk(", Vpp %d.%d", link->conf.Vpp1 / 10, | 748 | link->conf.Vpp % 10); |
753 | link->conf.Vpp1 % 10); | ||
754 | if (link->conf.Attributes & CONF_ENABLE_IRQ) | 749 | if (link->conf.Attributes & CONF_ENABLE_IRQ) |
755 | printk(", irq %d", link->irq.AssignedIRQ); | 750 | printk(", irq %d", link->irq.AssignedIRQ); |
756 | if (link->io.NumPorts1) | 751 | if (link->io.NumPorts1) |