diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-07-29 13:27:09 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-09-29 11:20:23 -0400 |
commit | 1ac71e5a35eebee60cdcf15b3980bd94498f037b (patch) | |
tree | 22fa9342ccccce6a774af029ce51a526e55f8180 /drivers/net/wireless/orinoco/orinoco_cs.c | |
parent | 7feabb6412ea23edd298c0fa90e5aa6733eb4a42 (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/orinoco/orinoco_cs.c')
-rw-r--r-- | drivers/net/wireless/orinoco/orinoco_cs.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/net/wireless/orinoco/orinoco_cs.c b/drivers/net/wireless/orinoco/orinoco_cs.c index 1147d6bd4733..00316a1a1092 100644 --- a/drivers/net/wireless/orinoco/orinoco_cs.c +++ b/drivers/net/wireless/orinoco/orinoco_cs.c | |||
@@ -17,7 +17,6 @@ | |||
17 | #include <linux/kernel.h> | 17 | #include <linux/kernel.h> |
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <linux/delay.h> | 19 | #include <linux/delay.h> |
20 | #include <pcmcia/cs.h> | ||
21 | #include <pcmcia/cistpl.h> | 20 | #include <pcmcia/cistpl.h> |
22 | #include <pcmcia/cisreg.h> | 21 | #include <pcmcia/cisreg.h> |
23 | #include <pcmcia/ds.h> | 22 | #include <pcmcia/ds.h> |
@@ -117,13 +116,6 @@ orinoco_cs_probe(struct pcmcia_device *link) | |||
117 | card->p_dev = link; | 116 | card->p_dev = link; |
118 | link->priv = priv; | 117 | link->priv = priv; |
119 | 118 | ||
120 | /* General socket configuration defaults can go here. In this | ||
121 | * client, we assume very little, and rely on the CIS for | ||
122 | * almost everything. In most clients, many details (i.e., | ||
123 | * number, sizes, and attributes of IO windows) are fixed by | ||
124 | * the nature of the device, and can be hard-wired here. */ | ||
125 | link->conf.Attributes = 0; | ||
126 | |||
127 | return orinoco_cs_config(link); | 119 | return orinoco_cs_config(link); |
128 | } /* orinoco_cs_attach */ | 120 | } /* orinoco_cs_attach */ |
129 | 121 | ||
@@ -187,7 +179,7 @@ static int orinoco_cs_config_check(struct pcmcia_device *p_dev, | |||
187 | dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000; | 179 | dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000; |
188 | 180 | ||
189 | /* Do we need to allocate an interrupt? */ | 181 | /* Do we need to allocate an interrupt? */ |
190 | p_dev->conf.Attributes |= CONF_ENABLE_IRQ; | 182 | p_dev->config_flags |= CONF_ENABLE_IRQ; |
191 | 183 | ||
192 | /* IO window settings */ | 184 | /* IO window settings */ |
193 | p_dev->resource[0]->end = p_dev->resource[1]->end = 0; | 185 | p_dev->resource[0]->end = p_dev->resource[1]->end = 0; |
@@ -266,7 +258,7 @@ orinoco_cs_config(struct pcmcia_device *link) | |||
266 | * the I/O windows and the interrupt mapping, and putting the | 258 | * the I/O windows and the interrupt mapping, and putting the |
267 | * card and host interface into "Memory and IO" mode. | 259 | * card and host interface into "Memory and IO" mode. |
268 | */ | 260 | */ |
269 | ret = pcmcia_request_configuration(link, &link->conf); | 261 | ret = pcmcia_enable_device(link); |
270 | if (ret) | 262 | if (ret) |
271 | goto failed; | 263 | goto failed; |
272 | 264 | ||