aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/hostap
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2010-07-29 13:27:09 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2010-09-29 11:20:23 -0400
commit1ac71e5a35eebee60cdcf15b3980bd94498f037b (patch)
tree22fa9342ccccce6a774af029ce51a526e55f8180 /drivers/net/wireless/hostap
parent7feabb6412ea23edd298c0fa90e5aa6733eb4a42 (diff)
pcmcia: convert pcmcia_request_configuration to pcmcia_enable_device
pcmcia_enable_device() now replaces pcmcia_request_configuration(). Instead of config_req_t, all necessary flags are either passed as a parameter to pcmcia_enable_device(), or (in rare circumstances) set in struct pcmcia_device -> flags. With the last remaining user of include/pcmcia/cs.h gone, remove all references. CC: netdev@vger.kernel.org CC: linux-wireless@vger.kernel.org CC: linux-ide@vger.kernel.org CC: linux-usb@vger.kernel.org CC: laforge@gnumonks.org CC: linux-mtd@lists.infradead.org CC: alsa-devel@alsa-project.org CC: linux-serial@vger.kernel.org CC: Jiri Kosina <jkosina@suse.cz> CC: linux-scsi@vger.kernel.org Acked-by: Gustavo F. Padovan <padovan@profusion.mobi> (for drivers/bluetooth) Tested-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/net/wireless/hostap')
-rw-r--r--drivers/net/wireless/hostap/hostap_cs.c10
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])