aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
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
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')
-rw-r--r--drivers/net/pcmcia/3c574_cs.c5
-rw-r--r--drivers/net/pcmcia/3c589_cs.c5
-rw-r--r--drivers/net/pcmcia/axnet_cs.c10
-rw-r--r--drivers/net/pcmcia/com20020_cs.c5
-rw-r--r--drivers/net/pcmcia/fmvj18x_cs.c5
-rw-r--r--drivers/net/pcmcia/ibmtr_cs.c5
-rw-r--r--drivers/net/pcmcia/nmclan_cs.c5
-rw-r--r--drivers/net/pcmcia/pcnet_cs.c7
-rw-r--r--drivers/net/pcmcia/smc91c92_cs.c9
-rw-r--r--drivers/net/pcmcia/xirc2ps_cs.c12
-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
19 files changed, 53 insertions, 106 deletions
diff --git a/drivers/net/pcmcia/3c574_cs.c b/drivers/net/pcmcia/3c574_cs.c
index 4b670b3da378..8abce76367f8 100644
--- a/drivers/net/pcmcia/3c574_cs.c
+++ b/drivers/net/pcmcia/3c574_cs.c
@@ -87,7 +87,6 @@ earlier 3Com products.
87#include <linux/bitops.h> 87#include <linux/bitops.h>
88#include <linux/mii.h> 88#include <linux/mii.h>
89 89
90#include <pcmcia/cs.h>
91#include <pcmcia/cistpl.h> 90#include <pcmcia/cistpl.h>
92#include <pcmcia/cisreg.h> 91#include <pcmcia/cisreg.h>
93#include <pcmcia/ciscode.h> 92#include <pcmcia/ciscode.h>
@@ -280,7 +279,7 @@ static int tc574_probe(struct pcmcia_device *link)
280 spin_lock_init(&lp->window_lock); 279 spin_lock_init(&lp->window_lock);
281 link->resource[0]->end = 32; 280 link->resource[0]->end = 32;
282 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_16; 281 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_16;
283 link->conf.Attributes = CONF_ENABLE_IRQ; 282 link->config_flags |= CONF_ENABLE_IRQ;
284 link->config_index = 1; 283 link->config_index = 1;
285 284
286 dev->netdev_ops = &el3_netdev_ops; 285 dev->netdev_ops = &el3_netdev_ops;
@@ -351,7 +350,7 @@ static int tc574_config(struct pcmcia_device *link)
351 if (ret) 350 if (ret)
352 goto failed; 351 goto failed;
353 352
354 ret = pcmcia_request_configuration(link, &link->conf); 353 ret = pcmcia_enable_device(link);
355 if (ret) 354 if (ret)
356 goto failed; 355 goto failed;
357 356
diff --git a/drivers/net/pcmcia/3c589_cs.c b/drivers/net/pcmcia/3c589_cs.c
index 6549e2c496a0..34195c407fb2 100644
--- a/drivers/net/pcmcia/3c589_cs.c
+++ b/drivers/net/pcmcia/3c589_cs.c
@@ -41,7 +41,6 @@
41#include <linux/bitops.h> 41#include <linux/bitops.h>
42#include <linux/jiffies.h> 42#include <linux/jiffies.h>
43 43
44#include <pcmcia/cs.h>
45#include <pcmcia/cistpl.h> 44#include <pcmcia/cistpl.h>
46#include <pcmcia/cisreg.h> 45#include <pcmcia/cisreg.h>
47#include <pcmcia/ciscode.h> 46#include <pcmcia/ciscode.h>
@@ -216,7 +215,7 @@ static int tc589_probe(struct pcmcia_device *link)
216 link->resource[0]->end = 16; 215 link->resource[0]->end = 16;
217 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_16; 216 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_16;
218 217
219 link->conf.Attributes = CONF_ENABLE_IRQ; 218 link->config_flags |= CONF_ENABLE_IRQ;
220 link->config_index = 1; 219 link->config_index = 1;
221 220
222 dev->netdev_ops = &el3_netdev_ops; 221 dev->netdev_ops = &el3_netdev_ops;
@@ -293,7 +292,7 @@ static int tc589_config(struct pcmcia_device *link)
293 if (ret) 292 if (ret)
294 goto failed; 293 goto failed;
295 294
296 ret = pcmcia_request_configuration(link, &link->conf); 295 ret = pcmcia_enable_device(link);
297 if (ret) 296 if (ret)
298 goto failed; 297 goto failed;
299 298
diff --git a/drivers/net/pcmcia/axnet_cs.c b/drivers/net/pcmcia/axnet_cs.c
index 2c273ce6a5d8..f361d2865e34 100644
--- a/drivers/net/pcmcia/axnet_cs.c
+++ b/drivers/net/pcmcia/axnet_cs.c
@@ -39,7 +39,6 @@
39#include <linux/mii.h> 39#include <linux/mii.h>
40#include "../8390.h" 40#include "../8390.h"
41 41
42#include <pcmcia/cs.h>
43#include <pcmcia/cistpl.h> 42#include <pcmcia/cistpl.h>
44#include <pcmcia/ciscode.h> 43#include <pcmcia/ciscode.h>
45#include <pcmcia/ds.h> 44#include <pcmcia/ds.h>
@@ -166,7 +165,7 @@ static int axnet_probe(struct pcmcia_device *link)
166 info = PRIV(dev); 165 info = PRIV(dev);
167 info->p_dev = link; 166 info->p_dev = link;
168 link->priv = dev; 167 link->priv = dev;
169 link->conf.Attributes = CONF_ENABLE_IRQ; 168 link->config_flags |= CONF_ENABLE_IRQ;
170 169
171 dev->netdev_ops = &axnet_netdev_ops; 170 dev->netdev_ops = &axnet_netdev_ops;
172 171
@@ -332,11 +331,12 @@ static int axnet_config(struct pcmcia_device *link)
332 331
333 if (!link->irq) 332 if (!link->irq)
334 goto failed; 333 goto failed;
335 334
335 link->config_flags |= CONF_ENABLE_IRQ;
336 if (resource_size(link->resource[1]) == 8) 336 if (resource_size(link->resource[1]) == 8)
337 link->conf.Attributes |= CONF_ENABLE_SPKR; 337 link->config_flags |= CONF_ENABLE_SPKR;
338 338
339 ret = pcmcia_request_configuration(link, &link->conf); 339 ret = pcmcia_enable_device(link);
340 if (ret) 340 if (ret)
341 goto failed; 341 goto failed;
342 342
diff --git a/drivers/net/pcmcia/com20020_cs.c b/drivers/net/pcmcia/com20020_cs.c
index a58eafed42a5..039731bddc27 100644
--- a/drivers/net/pcmcia/com20020_cs.c
+++ b/drivers/net/pcmcia/com20020_cs.c
@@ -43,7 +43,6 @@
43#include <linux/arcdevice.h> 43#include <linux/arcdevice.h>
44#include <linux/com20020.h> 44#include <linux/com20020.h>
45 45
46#include <pcmcia/cs.h>
47#include <pcmcia/cistpl.h> 46#include <pcmcia/cistpl.h>
48#include <pcmcia/ds.h> 47#include <pcmcia/ds.h>
49 48
@@ -160,7 +159,7 @@ static int com20020_probe(struct pcmcia_device *p_dev)
160 159
161 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; 160 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
162 p_dev->resource[0]->end = 16; 161 p_dev->resource[0]->end = 16;
163 p_dev->conf.Attributes = CONF_ENABLE_IRQ; 162 p_dev->config_flags |= CONF_ENABLE_IRQ;
164 163
165 info->dev = dev; 164 info->dev = dev;
166 p_dev->priv = info; 165 p_dev->priv = info;
@@ -281,7 +280,7 @@ static int com20020_config(struct pcmcia_device *link)
281 280
282 dev->irq = link->irq; 281 dev->irq = link->irq;
283 282
284 ret = pcmcia_request_configuration(link, &link->conf); 283 ret = pcmcia_enable_device(link);
285 if (ret) 284 if (ret)
286 goto failed; 285 goto failed;
287 286
diff --git a/drivers/net/pcmcia/fmvj18x_cs.c b/drivers/net/pcmcia/fmvj18x_cs.c
index 23f5333d8029..f6865adb126d 100644
--- a/drivers/net/pcmcia/fmvj18x_cs.c
+++ b/drivers/net/pcmcia/fmvj18x_cs.c
@@ -49,7 +49,6 @@
49#include <linux/ioport.h> 49#include <linux/ioport.h>
50#include <linux/crc32.h> 50#include <linux/crc32.h>
51 51
52#include <pcmcia/cs.h>
53#include <pcmcia/cistpl.h> 52#include <pcmcia/cistpl.h>
54#include <pcmcia/ciscode.h> 53#include <pcmcia/ciscode.h>
55#include <pcmcia/ds.h> 54#include <pcmcia/ds.h>
@@ -252,7 +251,7 @@ static int fmvj18x_probe(struct pcmcia_device *link)
252 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; 251 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
253 252
254 /* General socket configuration */ 253 /* General socket configuration */
255 link->conf.Attributes = CONF_ENABLE_IRQ; 254 link->config_flags |= CONF_ENABLE_IRQ;
256 255
257 dev->netdev_ops = &fjn_netdev_ops; 256 dev->netdev_ops = &fjn_netdev_ops;
258 dev->watchdog_timeo = TX_TIMEOUT; 257 dev->watchdog_timeo = TX_TIMEOUT;
@@ -431,7 +430,7 @@ static int fmvj18x_config(struct pcmcia_device *link)
431 ret = pcmcia_request_irq(link, fjn_interrupt); 430 ret = pcmcia_request_irq(link, fjn_interrupt);
432 if (ret) 431 if (ret)
433 goto failed; 432 goto failed;
434 ret = pcmcia_request_configuration(link, &link->conf); 433 ret = pcmcia_enable_device(link);
435 if (ret) 434 if (ret)
436 goto failed; 435 goto failed;
437 436
diff --git a/drivers/net/pcmcia/ibmtr_cs.c b/drivers/net/pcmcia/ibmtr_cs.c
index feedeeb17a52..b298a3d98dc8 100644
--- a/drivers/net/pcmcia/ibmtr_cs.c
+++ b/drivers/net/pcmcia/ibmtr_cs.c
@@ -57,7 +57,6 @@
57#include <linux/trdevice.h> 57#include <linux/trdevice.h>
58#include <linux/ibmtr.h> 58#include <linux/ibmtr.h>
59 59
60#include <pcmcia/cs.h>
61#include <pcmcia/cistpl.h> 60#include <pcmcia/cistpl.h>
62#include <pcmcia/ds.h> 61#include <pcmcia/ds.h>
63 62
@@ -152,7 +151,7 @@ static int __devinit ibmtr_attach(struct pcmcia_device *link)
152 151
153 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; 152 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
154 link->resource[0]->end = 4; 153 link->resource[0]->end = 4;
155 link->conf.Attributes = CONF_ENABLE_IRQ; 154 link->config_flags |= CONF_ENABLE_IRQ;
156 link->config_regs = PRESENT_OPTION; 155 link->config_regs = PRESENT_OPTION;
157 156
158 info->dev = dev; 157 info->dev = dev;
@@ -269,7 +268,7 @@ static int __devinit ibmtr_config(struct pcmcia_device *link)
269 resource_size(link->resource[3])); 268 resource_size(link->resource[3]));
270 ti->sram_phys = link->resource[3]->start; 269 ti->sram_phys = link->resource[3]->start;
271 270
272 ret = pcmcia_request_configuration(link, &link->conf); 271 ret = pcmcia_enable_device(link);
273 if (ret) 272 if (ret)
274 goto failed; 273 goto failed;
275 274
diff --git a/drivers/net/pcmcia/nmclan_cs.c b/drivers/net/pcmcia/nmclan_cs.c
index 98c4a6976045..51bf76de6499 100644
--- a/drivers/net/pcmcia/nmclan_cs.c
+++ b/drivers/net/pcmcia/nmclan_cs.c
@@ -146,7 +146,6 @@ Include Files
146#include <linux/ioport.h> 146#include <linux/ioport.h>
147#include <linux/bitops.h> 147#include <linux/bitops.h>
148 148
149#include <pcmcia/cs.h>
150#include <pcmcia/cisreg.h> 149#include <pcmcia/cisreg.h>
151#include <pcmcia/cistpl.h> 150#include <pcmcia/cistpl.h>
152#include <pcmcia/ds.h> 151#include <pcmcia/ds.h>
@@ -460,7 +459,7 @@ static int nmclan_probe(struct pcmcia_device *link)
460 spin_lock_init(&lp->bank_lock); 459 spin_lock_init(&lp->bank_lock);
461 link->resource[0]->end = 32; 460 link->resource[0]->end = 32;
462 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; 461 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
463 link->conf.Attributes = CONF_ENABLE_IRQ; 462 link->config_flags |= CONF_ENABLE_IRQ;
464 link->config_index = 1; 463 link->config_index = 1;
465 link->config_regs = PRESENT_OPTION; 464 link->config_regs = PRESENT_OPTION;
466 465
@@ -649,7 +648,7 @@ static int nmclan_config(struct pcmcia_device *link)
649 ret = pcmcia_request_exclusive_irq(link, mace_interrupt); 648 ret = pcmcia_request_exclusive_irq(link, mace_interrupt);
650 if (ret) 649 if (ret)
651 goto failed; 650 goto failed;
652 ret = pcmcia_request_configuration(link, &link->conf); 651 ret = pcmcia_enable_device(link);
653 if (ret) 652 if (ret)
654 goto failed; 653 goto failed;
655 654
diff --git a/drivers/net/pcmcia/pcnet_cs.c b/drivers/net/pcmcia/pcnet_cs.c
index 68c46751f84f..4a3b6a43550f 100644
--- a/drivers/net/pcmcia/pcnet_cs.c
+++ b/drivers/net/pcmcia/pcnet_cs.c
@@ -42,7 +42,6 @@
42#include <linux/mii.h> 42#include <linux/mii.h>
43#include "../8390.h" 43#include "../8390.h"
44 44
45#include <pcmcia/cs.h>
46#include <pcmcia/cistpl.h> 45#include <pcmcia/cistpl.h>
47#include <pcmcia/ciscode.h> 46#include <pcmcia/ciscode.h>
48#include <pcmcia/ds.h> 47#include <pcmcia/ds.h>
@@ -260,7 +259,7 @@ static int pcnet_probe(struct pcmcia_device *link)
260 info->p_dev = link; 259 info->p_dev = link;
261 link->priv = dev; 260 link->priv = dev;
262 261
263 link->conf.Attributes = CONF_ENABLE_IRQ; 262 link->config_flags |= CONF_ENABLE_IRQ;
264 263
265 dev->netdev_ops = &pcnet_netdev_ops; 264 dev->netdev_ops = &pcnet_netdev_ops;
266 265
@@ -560,13 +559,13 @@ static hw_info_t *pcnet_try_config(struct pcmcia_device *link,
560 return NULL; 559 return NULL;
561 560
562 if (resource_size(link->resource[1]) == 8) 561 if (resource_size(link->resource[1]) == 8)
563 link->conf.Attributes |= CONF_ENABLE_SPKR; 562 link->config_flags |= CONF_ENABLE_SPKR;
564 563
565 if ((link->manf_id == MANFID_IBM) && 564 if ((link->manf_id == MANFID_IBM) &&
566 (link->card_id == PRODID_IBM_HOME_AND_AWAY)) 565 (link->card_id == PRODID_IBM_HOME_AND_AWAY))
567 link->config_index |= 0x10; 566 link->config_index |= 0x10;
568 567
569 ret = pcmcia_request_configuration(link, &link->conf); 568 ret = pcmcia_enable_device(link);
570 if (ret) 569 if (ret)
571 return NULL; 570 return NULL;
572 571
diff --git a/drivers/net/pcmcia/smc91c92_cs.c b/drivers/net/pcmcia/smc91c92_cs.c
index 59f5034e8d93..8c16ba672012 100644
--- a/drivers/net/pcmcia/smc91c92_cs.c
+++ b/drivers/net/pcmcia/smc91c92_cs.c
@@ -44,7 +44,6 @@
44#include <linux/jiffies.h> 44#include <linux/jiffies.h>
45#include <linux/firmware.h> 45#include <linux/firmware.h>
46 46
47#include <pcmcia/cs.h>
48#include <pcmcia/cistpl.h> 47#include <pcmcia/cistpl.h>
49#include <pcmcia/cisreg.h> 48#include <pcmcia/cisreg.h>
50#include <pcmcia/ciscode.h> 49#include <pcmcia/ciscode.h>
@@ -326,7 +325,7 @@ static int smc91c92_probe(struct pcmcia_device *link)
326 spin_lock_init(&smc->lock); 325 spin_lock_init(&smc->lock);
327 link->resource[0]->end = 16; 326 link->resource[0]->end = 16;
328 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; 327 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
329 link->conf.Attributes = CONF_ENABLE_IRQ; 328 link->config_flags |= CONF_ENABLE_IRQ;
330 329
331 /* The SMC91c92-specific entries in the device structure. */ 330 /* The SMC91c92-specific entries in the device structure. */
332 dev->netdev_ops = &smc_netdev_ops; 331 dev->netdev_ops = &smc_netdev_ops;
@@ -444,7 +443,7 @@ static int mhz_mfc_config(struct pcmcia_device *link)
444 unsigned int offset; 443 unsigned int offset;
445 int i; 444 int i;
446 445
447 link->conf.Attributes |= CONF_ENABLE_SPKR; 446 link->config_flags |= CONF_ENABLE_SPKR;
448 link->resource[1]->flags |= IO_DATA_PATH_WIDTH_8; 447 link->resource[1]->flags |= IO_DATA_PATH_WIDTH_8;
449 link->resource[1]->end = 8; 448 link->resource[1]->end = 8;
450 449
@@ -637,7 +636,7 @@ static int osi_config(struct pcmcia_device *link)
637 static const unsigned int com[4] = { 0x3f8, 0x2f8, 0x3e8, 0x2e8 }; 636 static const unsigned int com[4] = { 0x3f8, 0x2f8, 0x3e8, 0x2e8 };
638 int i, j; 637 int i, j;
639 638
640 link->conf.Attributes |= CONF_ENABLE_SPKR; 639 link->config_flags |= CONF_ENABLE_SPKR;
641 link->resource[0]->end = 64; 640 link->resource[0]->end = 64;
642 link->resource[1]->flags |= IO_DATA_PATH_WIDTH_8; 641 link->resource[1]->flags |= IO_DATA_PATH_WIDTH_8;
643 link->resource[1]->end = 8; 642 link->resource[1]->end = 8;
@@ -862,7 +861,7 @@ static int smc91c92_config(struct pcmcia_device *link)
862 i = pcmcia_request_irq(link, smc_interrupt); 861 i = pcmcia_request_irq(link, smc_interrupt);
863 if (i) 862 if (i)
864 goto config_failed; 863 goto config_failed;
865 i = pcmcia_request_configuration(link, &link->conf); 864 i = pcmcia_enable_device(link);
866 if (i) 865 if (i)
867 goto config_failed; 866 goto config_failed;
868 867
diff --git a/drivers/net/pcmcia/xirc2ps_cs.c b/drivers/net/pcmcia/xirc2ps_cs.c
index 1c8ebf2df0c0..7a4a99b73d17 100644
--- a/drivers/net/pcmcia/xirc2ps_cs.c
+++ b/drivers/net/pcmcia/xirc2ps_cs.c
@@ -82,7 +82,6 @@
82#include <linux/bitops.h> 82#include <linux/bitops.h>
83#include <linux/mii.h> 83#include <linux/mii.h>
84 84
85#include <pcmcia/cs.h>
86#include <pcmcia/cistpl.h> 85#include <pcmcia/cistpl.h>
87#include <pcmcia/cisreg.h> 86#include <pcmcia/cisreg.h>
88#include <pcmcia/ciscode.h> 87#include <pcmcia/ciscode.h>
@@ -529,7 +528,7 @@ xirc2ps_probe(struct pcmcia_device *link)
529 link->priv = dev; 528 link->priv = dev;
530 529
531 /* General socket configuration */ 530 /* General socket configuration */
532 link->conf.Attributes = CONF_ENABLE_IRQ; 531 link->config_flags |= CONF_ENABLE_IRQ;
533 link->config_index = 1; 532 link->config_index = 1;
534 533
535 /* Fill in card specific entries */ 534 /* Fill in card specific entries */
@@ -811,9 +810,6 @@ xirc2ps_config(struct pcmcia_device * link)
811 if (local->modem) { 810 if (local->modem) {
812 int pass; 811 int pass;
813 812
814 if (do_sound)
815 link->conf.Attributes |= CONF_ENABLE_SPKR;
816
817 link->resource[1]->end = 8; 813 link->resource[1]->end = 8;
818 link->resource[1]->flags |= IO_DATA_PATH_WIDTH_8; 814 link->resource[1]->flags |= IO_DATA_PATH_WIDTH_8;
819 if (local->dingo) { 815 if (local->dingo) {
@@ -863,7 +859,11 @@ xirc2ps_config(struct pcmcia_device * link)
863 * This actually configures the PCMCIA socket -- setting up 859 * This actually configures the PCMCIA socket -- setting up
864 * the I/O windows and the interrupt mapping. 860 * the I/O windows and the interrupt mapping.
865 */ 861 */
866 if ((err=pcmcia_request_configuration(link, &link->conf))) 862 link->config_flags |= CONF_ENABLE_IRQ;
863 if (do_sound)
864 link->config_flags |= CONF_ENABLE_SPKR;
865
866 if ((err = pcmcia_enable_device(link)))
867 goto config_error; 867 goto config_error;
868 868
869 if (local->dingo) { 869 if (local->dingo) {
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