diff options
Diffstat (limited to 'drivers/net/pcmcia/ibmtr_cs.c')
-rw-r--r-- | drivers/net/pcmcia/ibmtr_cs.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/pcmcia/ibmtr_cs.c b/drivers/net/pcmcia/ibmtr_cs.c index 3107ccfe8f3d..b6c140eb9799 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/version.h> | ||
61 | #include <pcmcia/cs_types.h> | 60 | #include <pcmcia/cs_types.h> |
62 | #include <pcmcia/cs.h> | 61 | #include <pcmcia/cs.h> |
63 | #include <pcmcia/cistpl.h> | 62 | #include <pcmcia/cistpl.h> |
@@ -119,9 +118,6 @@ static void ibmtr_detach(dev_link_t *); | |||
119 | 118 | ||
120 | static dev_link_t *dev_list; | 119 | static dev_link_t *dev_list; |
121 | 120 | ||
122 | extern int ibmtr_probe_card(struct net_device *dev); | ||
123 | extern irqreturn_t tok_interrupt (int irq, void *dev_id, struct pt_regs *regs); | ||
124 | |||
125 | /*====================================================================*/ | 121 | /*====================================================================*/ |
126 | 122 | ||
127 | typedef struct ibmtr_dev_t { | 123 | typedef struct ibmtr_dev_t { |
@@ -193,11 +189,6 @@ static dev_link_t *ibmtr_attach(void) | |||
193 | link->next = dev_list; | 189 | link->next = dev_list; |
194 | dev_list = link; | 190 | dev_list = link; |
195 | client_reg.dev_info = &dev_info; | 191 | client_reg.dev_info = &dev_info; |
196 | client_reg.EventMask = | ||
197 | CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL | | ||
198 | CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET | | ||
199 | CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME; | ||
200 | client_reg.event_handler = &ibmtr_event; | ||
201 | client_reg.Version = 0x0210; | 192 | client_reg.Version = 0x0210; |
202 | client_reg.event_callback_args.client_data = link; | 193 | client_reg.event_callback_args.client_data = link; |
203 | ret = pcmcia_register_client(&link->handle, &client_reg); | 194 | ret = pcmcia_register_client(&link->handle, &client_reg); |
@@ -511,13 +502,22 @@ static void ibmtr_hw_setup(struct net_device *dev, u_int mmiobase) | |||
511 | return; | 502 | return; |
512 | } | 503 | } |
513 | 504 | ||
505 | static struct pcmcia_device_id ibmtr_ids[] = { | ||
506 | PCMCIA_DEVICE_PROD_ID12("3Com", "TokenLink Velocity PC Card", 0x41240e5b, 0x82c3734e), | ||
507 | PCMCIA_DEVICE_PROD_ID12("IBM", "TOKEN RING", 0xb569a6e5, 0xbf8eed47), | ||
508 | PCMCIA_DEVICE_NULL, | ||
509 | }; | ||
510 | MODULE_DEVICE_TABLE(pcmcia, ibmtr_ids); | ||
511 | |||
514 | static struct pcmcia_driver ibmtr_cs_driver = { | 512 | static struct pcmcia_driver ibmtr_cs_driver = { |
515 | .owner = THIS_MODULE, | 513 | .owner = THIS_MODULE, |
516 | .drv = { | 514 | .drv = { |
517 | .name = "ibmtr_cs", | 515 | .name = "ibmtr_cs", |
518 | }, | 516 | }, |
519 | .attach = ibmtr_attach, | 517 | .attach = ibmtr_attach, |
518 | .event = ibmtr_event, | ||
520 | .detach = ibmtr_detach, | 519 | .detach = ibmtr_detach, |
520 | .id_table = ibmtr_ids, | ||
521 | }; | 521 | }; |
522 | 522 | ||
523 | static int __init init_ibmtr_cs(void) | 523 | static int __init init_ibmtr_cs(void) |