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/spectrum_cs.c | |
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/spectrum_cs.c')
-rw-r--r-- | drivers/net/wireless/spectrum_cs.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/net/wireless/spectrum_cs.c b/drivers/net/wireless/spectrum_cs.c index 0429f1dc7fad..7a4a80b01f9c 100644 --- a/drivers/net/wireless/spectrum_cs.c +++ b/drivers/net/wireless/spectrum_cs.c | |||
@@ -692,7 +692,6 @@ spectrum_cs_config(dev_link_t *link) | |||
692 | /* Look up the current Vcc */ | 692 | /* Look up the current Vcc */ |
693 | CS_CHECK(GetConfigurationInfo, | 693 | CS_CHECK(GetConfigurationInfo, |
694 | pcmcia_get_configuration_info(handle, &conf)); | 694 | pcmcia_get_configuration_info(handle, &conf)); |
695 | link->conf.Vcc = conf.Vcc; | ||
696 | 695 | ||
697 | /* | 696 | /* |
698 | * In this loop, we scan the CIS for configuration table | 697 | * In this loop, we scan the CIS for configuration table |
@@ -747,10 +746,10 @@ spectrum_cs_config(dev_link_t *link) | |||
747 | } | 746 | } |
748 | 747 | ||
749 | if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM)) | 748 | if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM)) |
750 | link->conf.Vpp1 = link->conf.Vpp2 = | 749 | link->conf.Vpp = |
751 | cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000; | 750 | cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000; |
752 | else if (dflt.vpp1.present & (1 << CISTPL_POWER_VNOM)) | 751 | else if (dflt.vpp1.present & (1 << CISTPL_POWER_VNOM)) |
753 | link->conf.Vpp1 = link->conf.Vpp2 = | 752 | link->conf.Vpp = |
754 | dflt.vpp1.param[CISTPL_POWER_VNOM] / 10000; | 753 | dflt.vpp1.param[CISTPL_POWER_VNOM] / 10000; |
755 | 754 | ||
756 | /* Do we need to allocate an interrupt? */ | 755 | /* Do we need to allocate an interrupt? */ |
@@ -851,12 +850,11 @@ spectrum_cs_config(dev_link_t *link) | |||
851 | link->state &= ~DEV_CONFIG_PENDING; | 850 | link->state &= ~DEV_CONFIG_PENDING; |
852 | 851 | ||
853 | /* Finally, report what we've done */ | 852 | /* Finally, report what we've done */ |
854 | printk(KERN_DEBUG "%s: index 0x%02x: Vcc %d.%d", | 853 | printk(KERN_DEBUG "%s: index 0x%02x: ", |
855 | dev->name, link->conf.ConfigIndex, | 854 | dev->name, link->conf.ConfigIndex); |
856 | link->conf.Vcc / 10, link->conf.Vcc % 10); | 855 | if (link->conf.Vpp) |
857 | if (link->conf.Vpp1) | 856 | printk(", Vpp %d.%d", link->conf.Vpp / 10, |
858 | printk(", Vpp %d.%d", link->conf.Vpp1 / 10, | 857 | link->conf.Vpp % 10); |
859 | link->conf.Vpp1 % 10); | ||
860 | printk(", irq %d", link->irq.AssignedIRQ); | 858 | printk(", irq %d", link->irq.AssignedIRQ); |
861 | if (link->io.NumPorts1) | 859 | if (link->io.NumPorts1) |
862 | printk(", io 0x%04x-0x%04x", link->io.BasePort1, | 860 | printk(", io 0x%04x-0x%04x", link->io.BasePort1, |