diff options
Diffstat (limited to 'drivers/net/wireless/airo_cs.c')
-rw-r--r-- | drivers/net/wireless/airo_cs.c | 16 |
1 files changed, 3 insertions, 13 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 = |