aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
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
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')
-rw-r--r--drivers/net/wireless/airo_cs.c16
-rw-r--r--drivers/net/wireless/atmel_cs.c16
-rw-r--r--drivers/net/wireless/b43/pcmcia.c5
-rw-r--r--drivers/net/wireless/hostap/hostap_cs.c10
-rw-r--r--drivers/net/wireless/libertas/if_cs.c10
-rw-r--r--drivers/net/wireless/orinoco/orinoco_cs.c12
-rw-r--r--drivers/net/wireless/orinoco/spectrum_cs.c12
-rw-r--r--drivers/net/wireless/ray_cs.c5
-rw-r--r--drivers/net/wireless/wl3501_cs.c5
9 files changed, 23 insertions, 68 deletions
diff --git a/drivers/net/wireless/airo_cs.c b/drivers/net/wireless/airo_cs.c
index 40f9ed760bb3..5939d0c7a5c8 100644
--- a/drivers/net/wireless/airo_cs.c
+++ b/drivers/net/wireless/airo_cs.c
@@ -32,7 +32,6 @@
32#include <linux/timer.h> 32#include <linux/timer.h>
33#include <linux/netdevice.h> 33#include <linux/netdevice.h>
34 34
35#include <pcmcia/cs.h>
36#include <pcmcia/cistpl.h> 35#include <pcmcia/cistpl.h>
37#include <pcmcia/cisreg.h> 36#include <pcmcia/cisreg.h>
38#include <pcmcia/ds.h> 37#include <pcmcia/ds.h>
@@ -96,15 +95,6 @@ static int airo_probe(struct pcmcia_device *p_dev)
96 95
97 dev_dbg(&p_dev->dev, "airo_attach()\n"); 96 dev_dbg(&p_dev->dev, "airo_attach()\n");
98 97
99 /*
100 General socket configuration defaults can go here. In this
101 client, we assume very little, and rely on the CIS for almost
102 everything. In most clients, many details (i.e., number, sizes,
103 and attributes of IO windows) are fixed by the nature of the
104 device, and can be hard-wired here.
105 */
106 p_dev->conf.Attributes = 0;
107
108 /* Allocate space for private device-specific data */ 98 /* Allocate space for private device-specific data */
109 local = kzalloc(sizeof(local_info_t), GFP_KERNEL); 99 local = kzalloc(sizeof(local_info_t), GFP_KERNEL);
110 if (!local) { 100 if (!local) {
@@ -158,7 +148,7 @@ static int airo_cs_config_check(struct pcmcia_device *p_dev,
158 148
159 /* Does this card need audio output? */ 149 /* Does this card need audio output? */
160 if (cfg->flags & CISTPL_CFTABLE_AUDIO) 150 if (cfg->flags & CISTPL_CFTABLE_AUDIO)
161 p_dev->conf.Attributes |= CONF_ENABLE_SPKR; 151 p_dev->config_flags |= CONF_ENABLE_SPKR;
162 152
163 /* Use power settings for Vcc and Vpp if present */ 153 /* Use power settings for Vcc and Vpp if present */
164 /* Note that the CIS values need to be rescaled */ 154 /* Note that the CIS values need to be rescaled */
@@ -167,7 +157,7 @@ static int airo_cs_config_check(struct pcmcia_device *p_dev,
167 else if (dflt->vpp1.present & (1<<CISTPL_POWER_VNOM)) 157 else if (dflt->vpp1.present & (1<<CISTPL_POWER_VNOM))
168 p_dev->vpp = dflt->vpp1.param[CISTPL_POWER_VNOM]/10000; 158 p_dev->vpp = dflt->vpp1.param[CISTPL_POWER_VNOM]/10000;
169 159
170 p_dev->conf.Attributes |= CONF_ENABLE_IRQ; 160 p_dev->config_flags |= CONF_ENABLE_IRQ;
171 161
172 /* IO window settings */ 162 /* IO window settings */
173 p_dev->resource[0]->end = p_dev->resource[1]->end = 0; 163 p_dev->resource[0]->end = p_dev->resource[1]->end = 0;
@@ -229,7 +219,7 @@ static int airo_config(struct pcmcia_device *link)
229 the I/O windows and the interrupt mapping, and putting the 219 the I/O windows and the interrupt mapping, and putting the
230 card and host interface into "Memory and IO" mode. 220 card and host interface into "Memory and IO" mode.
231 */ 221 */
232 ret = pcmcia_request_configuration(link, &link->conf); 222 ret = pcmcia_enable_device(link);
233 if (ret) 223 if (ret)
234 goto failed; 224 goto failed;
235 ((local_info_t *)link->priv)->eth_dev = 225 ((local_info_t *)link->priv)->eth_dev =
diff --git a/drivers/net/wireless/atmel_cs.c b/drivers/net/wireless/atmel_cs.c
index 8b75158caed7..080266eba985 100644
--- a/drivers/net/wireless/atmel_cs.c
+++ b/drivers/net/wireless/atmel_cs.c
@@ -42,7 +42,6 @@
42#include <linux/moduleparam.h> 42#include <linux/moduleparam.h>
43#include <linux/device.h> 43#include <linux/device.h>
44 44
45#include <pcmcia/cs.h>
46#include <pcmcia/cistpl.h> 45#include <pcmcia/cistpl.h>
47#include <pcmcia/cisreg.h> 46#include <pcmcia/cisreg.h>
48#include <pcmcia/ds.h> 47#include <pcmcia/ds.h>
@@ -106,15 +105,6 @@ static int atmel_probe(struct pcmcia_device *p_dev)
106 105
107 dev_dbg(&p_dev->dev, "atmel_attach()\n"); 106 dev_dbg(&p_dev->dev, "atmel_attach()\n");
108 107
109 /*
110 General socket configuration defaults can go here. In this
111 client, we assume very little, and rely on the CIS for almost
112 everything. In most clients, many details (i.e., number, sizes,
113 and attributes of IO windows) are fixed by the nature of the
114 device, and can be hard-wired here.
115 */
116 p_dev->conf.Attributes = 0;
117
118 /* Allocate space for private device-specific data */ 108 /* Allocate space for private device-specific data */
119 local = kzalloc(sizeof(local_info_t), GFP_KERNEL); 109 local = kzalloc(sizeof(local_info_t), GFP_KERNEL);
120 if (!local) { 110 if (!local) {
@@ -175,7 +165,7 @@ static int atmel_config_check(struct pcmcia_device *p_dev,
175 165
176 /* Does this card need audio output? */ 166 /* Does this card need audio output? */
177 if (cfg->flags & CISTPL_CFTABLE_AUDIO) 167 if (cfg->flags & CISTPL_CFTABLE_AUDIO)
178 p_dev->conf.Attributes |= CONF_ENABLE_SPKR; 168 p_dev->config_flags |= CONF_ENABLE_SPKR;
179 169
180 /* Use power settings for Vcc and Vpp if present */ 170 /* Use power settings for Vcc and Vpp if present */
181 /* Note that the CIS values need to be rescaled */ 171 /* Note that the CIS values need to be rescaled */
@@ -184,7 +174,7 @@ static int atmel_config_check(struct pcmcia_device *p_dev,
184 else if (dflt->vpp1.present & (1<<CISTPL_POWER_VNOM)) 174 else if (dflt->vpp1.present & (1<<CISTPL_POWER_VNOM))
185 p_dev->vpp = dflt->vpp1.param[CISTPL_POWER_VNOM]/10000; 175 p_dev->vpp = dflt->vpp1.param[CISTPL_POWER_VNOM]/10000;
186 176
187 p_dev->conf.Attributes |= CONF_ENABLE_IRQ; 177 p_dev->config_flags |= CONF_ENABLE_IRQ;
188 178
189 /* IO window settings */ 179 /* IO window settings */
190 p_dev->resource[0]->end = p_dev->resource[1]->end = 0; 180 p_dev->resource[0]->end = p_dev->resource[1]->end = 0;
@@ -242,7 +232,7 @@ static int atmel_config(struct pcmcia_device *link)
242 the I/O windows and the interrupt mapping, and putting the 232 the I/O windows and the interrupt mapping, and putting the
243 card and host interface into "Memory and IO" mode. 233 card and host interface into "Memory and IO" mode.
244 */ 234 */
245 ret = pcmcia_request_configuration(link, &link->conf); 235 ret = pcmcia_enable_device(link);
246 if (ret) 236 if (ret)
247 goto failed; 237 goto failed;
248 238
diff --git a/drivers/net/wireless/b43/pcmcia.c b/drivers/net/wireless/b43/pcmcia.c
index 138b26fcc75c..61abab1f1c7c 100644
--- a/drivers/net/wireless/b43/pcmcia.c
+++ b/drivers/net/wireless/b43/pcmcia.c
@@ -26,7 +26,6 @@
26#include <linux/ssb/ssb.h> 26#include <linux/ssb/ssb.h>
27#include <linux/slab.h> 27#include <linux/slab.h>
28 28
29#include <pcmcia/cs.h>
30#include <pcmcia/cistpl.h> 29#include <pcmcia/cistpl.h>
31#include <pcmcia/ciscode.h> 30#include <pcmcia/ciscode.h>
32#include <pcmcia/ds.h> 31#include <pcmcia/ds.h>
@@ -72,7 +71,7 @@ static int __devinit b43_pcmcia_probe(struct pcmcia_device *dev)
72 71
73 err = -ENODEV; 72 err = -ENODEV;
74 73
75 dev->conf.Attributes = CONF_ENABLE_IRQ; 74 dev->config_flags |= CONF_ENABLE_IRQ;
76 75
77 dev->resource[2]->flags |= WIN_ENABLE | WIN_DATA_WIDTH_16 | 76 dev->resource[2]->flags |= WIN_ENABLE | WIN_DATA_WIDTH_16 |
78 WIN_USE_WAIT; 77 WIN_USE_WAIT;
@@ -89,7 +88,7 @@ static int __devinit b43_pcmcia_probe(struct pcmcia_device *dev)
89 if (!dev->irq) 88 if (!dev->irq)
90 goto err_disable; 89 goto err_disable;
91 90
92 res = pcmcia_request_configuration(dev, &dev->conf); 91 res = pcmcia_enable_device(dev);
93 if (res != 0) 92 if (res != 0)
94 goto err_disable; 93 goto err_disable;
95 94
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])
diff --git a/drivers/net/wireless/libertas/if_cs.c b/drivers/net/wireless/libertas/if_cs.c
index 814b7faaa365..6020c19b1bdb 100644
--- a/drivers/net/wireless/libertas/if_cs.c
+++ b/drivers/net/wireless/libertas/if_cs.c
@@ -28,7 +28,6 @@
28#include <linux/firmware.h> 28#include <linux/firmware.h>
29#include <linux/netdevice.h> 29#include <linux/netdevice.h>
30 30
31#include <pcmcia/cs.h>
32#include <pcmcia/cistpl.h> 31#include <pcmcia/cistpl.h>
33#include <pcmcia/ds.h> 32#include <pcmcia/ds.h>
34 33
@@ -806,7 +805,7 @@ static int if_cs_ioprobe(struct pcmcia_device *p_dev,
806 p_dev->resource[0]->end = cfg->io.win[0].len; 805 p_dev->resource[0]->end = cfg->io.win[0].len;
807 806
808 /* Do we need to allocate an interrupt? */ 807 /* Do we need to allocate an interrupt? */
809 p_dev->conf.Attributes |= CONF_ENABLE_IRQ; 808 p_dev->config_flags |= CONF_ENABLE_IRQ;
810 809
811 /* IO window settings */ 810 /* IO window settings */
812 if (cfg->io.nwin != 1) { 811 if (cfg->io.nwin != 1) {
@@ -835,14 +834,11 @@ static int if_cs_probe(struct pcmcia_device *p_dev)
835 card->p_dev = p_dev; 834 card->p_dev = p_dev;
836 p_dev->priv = card; 835 p_dev->priv = card;
837 836
838 p_dev->conf.Attributes = 0;
839
840 if (pcmcia_loop_config(p_dev, if_cs_ioprobe, NULL)) { 837 if (pcmcia_loop_config(p_dev, if_cs_ioprobe, NULL)) {
841 lbs_pr_err("error in pcmcia_loop_config\n"); 838 lbs_pr_err("error in pcmcia_loop_config\n");
842 goto out1; 839 goto out1;
843 } 840 }
844 841
845
846 /* 842 /*
847 * Allocate an interrupt line. Note that this does not assign 843 * Allocate an interrupt line. Note that this does not assign
848 * a handler to the interrupt, unless the 'Handler' member of 844 * a handler to the interrupt, unless the 'Handler' member of
@@ -865,9 +861,9 @@ static int if_cs_probe(struct pcmcia_device *p_dev)
865 * the I/O windows and the interrupt mapping, and putting the 861 * the I/O windows and the interrupt mapping, and putting the
866 * card and host interface into "Memory and IO" mode. 862 * card and host interface into "Memory and IO" mode.
867 */ 863 */
868 ret = pcmcia_request_configuration(p_dev, &p_dev->conf); 864 ret = pcmcia_enable_device(p_dev);
869 if (ret) { 865 if (ret) {
870 lbs_pr_err("error in pcmcia_request_configuration\n"); 866 lbs_pr_err("error in pcmcia_enable_device\n");
871 goto out2; 867 goto out2;
872 } 868 }
873 869
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
diff --git a/drivers/net/wireless/orinoco/spectrum_cs.c b/drivers/net/wireless/orinoco/spectrum_cs.c
index 20b08ab87655..ca2c6c0c5576 100644
--- a/drivers/net/wireless/orinoco/spectrum_cs.c
+++ b/drivers/net/wireless/orinoco/spectrum_cs.c
@@ -25,7 +25,6 @@
25#include <linux/kernel.h> 25#include <linux/kernel.h>
26#include <linux/init.h> 26#include <linux/init.h>
27#include <linux/delay.h> 27#include <linux/delay.h>
28#include <pcmcia/cs.h>
29#include <pcmcia/cistpl.h> 28#include <pcmcia/cistpl.h>
30#include <pcmcia/cisreg.h> 29#include <pcmcia/cisreg.h>
31#include <pcmcia/ds.h> 30#include <pcmcia/ds.h>
@@ -179,13 +178,6 @@ spectrum_cs_probe(struct pcmcia_device *link)
179 card->p_dev = link; 178 card->p_dev = link;
180 link->priv = priv; 179 link->priv = priv;
181 180
182 /* General socket configuration defaults can go here. In this
183 * client, we assume very little, and rely on the CIS for
184 * almost everything. In most clients, many details (i.e.,
185 * number, sizes, and attributes of IO windows) are fixed by
186 * the nature of the device, and can be hard-wired here. */
187 link->conf.Attributes = 0;
188
189 return spectrum_cs_config(link); 181 return spectrum_cs_config(link);
190} /* spectrum_cs_attach */ 182} /* spectrum_cs_attach */
191 183
@@ -249,7 +241,7 @@ static int spectrum_cs_config_check(struct pcmcia_device *p_dev,
249 dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000; 241 dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000;
250 242
251 /* Do we need to allocate an interrupt? */ 243 /* Do we need to allocate an interrupt? */
252 p_dev->conf.Attributes |= CONF_ENABLE_IRQ; 244 p_dev->config_flags |= CONF_ENABLE_IRQ;
253 245
254 /* IO window settings */ 246 /* IO window settings */
255 p_dev->resource[0]->end = p_dev->resource[1]->end = 0; 247 p_dev->resource[0]->end = p_dev->resource[1]->end = 0;
@@ -329,7 +321,7 @@ spectrum_cs_config(struct pcmcia_device *link)
329 * the I/O windows and the interrupt mapping, and putting the 321 * the I/O windows and the interrupt mapping, and putting the
330 * card and host interface into "Memory and IO" mode. 322 * card and host interface into "Memory and IO" mode.
331 */ 323 */
332 ret = pcmcia_request_configuration(link, &link->conf); 324 ret = pcmcia_enable_device(link);
333 if (ret) 325 if (ret)
334 goto failed; 326 goto failed;
335 327
diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c
index 7fb66cc1e9fd..1457f34efa9a 100644
--- a/drivers/net/wireless/ray_cs.c
+++ b/drivers/net/wireless/ray_cs.c
@@ -46,7 +46,6 @@
46#include <linux/ethtool.h> 46#include <linux/ethtool.h>
47#include <linux/ieee80211.h> 47#include <linux/ieee80211.h>
48 48
49#include <pcmcia/cs.h>
50#include <pcmcia/cistpl.h> 49#include <pcmcia/cistpl.h>
51#include <pcmcia/cisreg.h> 50#include <pcmcia/cisreg.h>
52#include <pcmcia/ds.h> 51#include <pcmcia/ds.h>
@@ -318,7 +317,7 @@ static int ray_probe(struct pcmcia_device *p_dev)
318 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; 317 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
319 318
320 /* General socket configuration */ 319 /* General socket configuration */
321 p_dev->conf.Attributes = CONF_ENABLE_IRQ; 320 p_dev->config_flags |= CONF_ENABLE_IRQ;
322 p_dev->config_index = 1; 321 p_dev->config_index = 1;
323 322
324 p_dev->priv = dev; 323 p_dev->priv = dev;
@@ -413,7 +412,7 @@ static int ray_config(struct pcmcia_device *link)
413 /* This actually configures the PCMCIA socket -- setting up 412 /* This actually configures the PCMCIA socket -- setting up
414 the I/O windows and the interrupt mapping. 413 the I/O windows and the interrupt mapping.
415 */ 414 */
416 ret = pcmcia_request_configuration(link, &link->conf); 415 ret = pcmcia_enable_device(link);
417 if (ret) 416 if (ret)
418 goto failed; 417 goto failed;
419 418
diff --git a/drivers/net/wireless/wl3501_cs.c b/drivers/net/wireless/wl3501_cs.c
index 3947cf8e63c5..101b6ffd560e 100644
--- a/drivers/net/wireless/wl3501_cs.c
+++ b/drivers/net/wireless/wl3501_cs.c
@@ -48,7 +48,6 @@
48 48
49#include <net/iw_handler.h> 49#include <net/iw_handler.h>
50 50
51#include <pcmcia/cs.h>
52#include <pcmcia/cistpl.h> 51#include <pcmcia/cistpl.h>
53#include <pcmcia/cisreg.h> 52#include <pcmcia/cisreg.h>
54#include <pcmcia/ds.h> 53#include <pcmcia/ds.h>
@@ -1888,7 +1887,7 @@ static int wl3501_probe(struct pcmcia_device *p_dev)
1888 p_dev->resource[0]->flags = IO_DATA_PATH_WIDTH_8; 1887 p_dev->resource[0]->flags = IO_DATA_PATH_WIDTH_8;
1889 1888
1890 /* General socket configuration */ 1889 /* General socket configuration */
1891 p_dev->conf.Attributes = CONF_ENABLE_IRQ; 1890 p_dev->config_flags = CONF_ENABLE_IRQ;
1892 p_dev->config_index = 1; 1891 p_dev->config_index = 1;
1893 1892
1894 dev = alloc_etherdev(sizeof(struct wl3501_card)); 1893 dev = alloc_etherdev(sizeof(struct wl3501_card));
@@ -1954,7 +1953,7 @@ static int wl3501_config(struct pcmcia_device *link)
1954 /* This actually configures the PCMCIA socket -- setting up the I/O 1953 /* This actually configures the PCMCIA socket -- setting up the I/O
1955 * windows and the interrupt mapping. */ 1954 * windows and the interrupt mapping. */
1956 1955
1957 ret = pcmcia_request_configuration(link, &link->conf); 1956 ret = pcmcia_enable_device(link);
1958 if (ret) 1957 if (ret)
1959 goto failed; 1958 goto failed;
1960 1959