diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-02 10:12:00 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-22 19:22:52 -0400 |
commit | ad913c11928f51abb6174f165db8d8d205b22e21 (patch) | |
tree | a8542c846afb4950a12f46b16c1eacfa2280971a /drivers/net/pcmcia/smc91c92_cs.c | |
parent | 8e2fc39ddea7fe8c6798837da282db88a09af793 (diff) |
pcmcia: pcmcia_config_loop() improvement by passing vcc
By passing the current Vcc setting to the pcmcia_config_loop callback
function, we can remove pcmcia_get_configuration_info() calls from many
drivers.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/net/pcmcia/smc91c92_cs.c')
-rw-r--r-- | drivers/net/pcmcia/smc91c92_cs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/pcmcia/smc91c92_cs.c b/drivers/net/pcmcia/smc91c92_cs.c index 05bca83c5e27..b3f2085ddca9 100644 --- a/drivers/net/pcmcia/smc91c92_cs.c +++ b/drivers/net/pcmcia/smc91c92_cs.c | |||
@@ -462,6 +462,7 @@ static int mhz_3288_power(struct pcmcia_device *link) | |||
462 | static int mhz_mfc_config_check(struct pcmcia_device *p_dev, | 462 | static int mhz_mfc_config_check(struct pcmcia_device *p_dev, |
463 | cistpl_cftable_entry_t *cf, | 463 | cistpl_cftable_entry_t *cf, |
464 | cistpl_cftable_entry_t *dflt, | 464 | cistpl_cftable_entry_t *dflt, |
465 | unsigned int vcc, | ||
465 | void *priv_data) | 466 | void *priv_data) |
466 | { | 467 | { |
467 | int k; | 468 | int k; |
@@ -653,6 +654,7 @@ static int mot_setup(struct pcmcia_device *link) | |||
653 | static int smc_configcheck(struct pcmcia_device *p_dev, | 654 | static int smc_configcheck(struct pcmcia_device *p_dev, |
654 | cistpl_cftable_entry_t *cf, | 655 | cistpl_cftable_entry_t *cf, |
655 | cistpl_cftable_entry_t *dflt, | 656 | cistpl_cftable_entry_t *dflt, |
657 | unsigned int vcc, | ||
656 | void *priv_data) | 658 | void *priv_data) |
657 | { | 659 | { |
658 | p_dev->io.BasePort1 = cf->io.win[0].base; | 660 | p_dev->io.BasePort1 = cf->io.win[0].base; |