aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pcmcia/pcnet_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/pcmcia/pcnet_cs.c')
-rw-r--r--drivers/net/pcmcia/pcnet_cs.c7
1 files changed, 3 insertions, 4 deletions
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