aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/orinoco/spectrum_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/orinoco/spectrum_cs.c')
-rw-r--r--drivers/net/wireless/orinoco/spectrum_cs.c12
1 files changed, 2 insertions, 10 deletions
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