diff options
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_cs.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_cs.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/wireless/hostap/hostap_cs.c b/drivers/net/wireless/hostap/hostap_cs.c index 5704d3f9e1b7..5b0b5828b3cf 100644 --- a/drivers/net/wireless/hostap/hostap_cs.c +++ b/drivers/net/wireless/hostap/hostap_cs.c | |||
@@ -12,7 +12,6 @@ | |||
12 | #include <linux/wireless.h> | 12 | #include <linux/wireless.h> |
13 | #include <net/iw_handler.h> | 13 | #include <net/iw_handler.h> |
14 | 14 | ||
15 | #include <pcmcia/cs.h> | ||
16 | #include <pcmcia/cistpl.h> | 15 | #include <pcmcia/cistpl.h> |
17 | #include <pcmcia/cisreg.h> | 16 | #include <pcmcia/cisreg.h> |
18 | #include <pcmcia/ds.h> | 17 | #include <pcmcia/ds.h> |
@@ -484,7 +483,7 @@ static int prism2_config_check(struct pcmcia_device *p_dev, | |||
484 | 483 | ||
485 | /* Does this card need audio output? */ | 484 | /* Does this card need audio output? */ |
486 | if (cfg->flags & CISTPL_CFTABLE_AUDIO) | 485 | if (cfg->flags & CISTPL_CFTABLE_AUDIO) |
487 | p_dev->conf.Attributes |= CONF_ENABLE_SPKR; | 486 | p_dev->config_flags |= CONF_ENABLE_SPKR; |
488 | 487 | ||
489 | /* Use power settings for Vcc and Vpp if present */ | 488 | /* Use power settings for Vcc and Vpp if present */ |
490 | /* Note that the CIS values need to be rescaled */ | 489 | /* Note that the CIS values need to be rescaled */ |
@@ -510,7 +509,7 @@ static int prism2_config_check(struct pcmcia_device *p_dev, | |||
510 | p_dev->vpp = dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000; | 509 | p_dev->vpp = dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000; |
511 | 510 | ||
512 | /* Do we need to allocate an interrupt? */ | 511 | /* Do we need to allocate an interrupt? */ |
513 | p_dev->conf.Attributes |= CONF_ENABLE_IRQ; | 512 | p_dev->config_flags |= CONF_ENABLE_IRQ; |
514 | 513 | ||
515 | /* IO window settings */ | 514 | /* IO window settings */ |
516 | PDEBUG(DEBUG_EXTRA, "IO window settings: cfg->io.nwin=%d " | 515 | PDEBUG(DEBUG_EXTRA, "IO window settings: cfg->io.nwin=%d " |
@@ -590,7 +589,7 @@ static int prism2_config(struct pcmcia_device *link) | |||
590 | * the I/O windows and the interrupt mapping, and putting the | 589 | * the I/O windows and the interrupt mapping, and putting the |
591 | * card and host interface into "Memory and IO" mode. | 590 | * card and host interface into "Memory and IO" mode. |
592 | */ | 591 | */ |
593 | ret = pcmcia_request_configuration(link, &link->conf); | 592 | ret = pcmcia_enable_device(link); |
594 | if (ret) | 593 | if (ret) |
595 | goto failed_unlock; | 594 | goto failed_unlock; |
596 | 595 | ||
@@ -605,8 +604,7 @@ static int prism2_config(struct pcmcia_device *link) | |||
605 | if (link->vpp) | 604 | if (link->vpp) |
606 | printk(", Vpp %d.%d", link->vpp / 10, | 605 | printk(", Vpp %d.%d", link->vpp / 10, |
607 | link->vpp % 10); | 606 | link->vpp % 10); |
608 | if (link->conf.Attributes & CONF_ENABLE_IRQ) | 607 | printk(", irq %d", link->irq); |
609 | printk(", irq %d", link->irq); | ||
610 | if (link->resource[0]) | 608 | if (link->resource[0]) |
611 | printk(" & %pR", link->resource[0]); | 609 | printk(" & %pR", link->resource[0]); |
612 | if (link->resource[1]) | 610 | if (link->resource[1]) |