diff options
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/airo.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/airo_cs.c | 7 | ||||
-rw-r--r-- | drivers/net/wireless/airport.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/atmel_cs.c | 17 | ||||
-rw-r--r-- | drivers/net/wireless/netwave_cs.c | 7 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco_cs.c | 7 | ||||
-rw-r--r-- | drivers/net/wireless/ray_cs.c | 7 | ||||
-rw-r--r-- | drivers/net/wireless/wavelan_cs.c | 7 | ||||
-rw-r--r-- | drivers/net/wireless/wavelan_cs.p.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/wl3501_cs.c | 19 |
10 files changed, 23 insertions, 61 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index c12648d8192b..47f3c5d0203d 100644 --- a/drivers/net/wireless/airo.c +++ b/drivers/net/wireless/airo.c | |||
@@ -2374,7 +2374,7 @@ void stop_airo_card( struct net_device *dev, int freeres ) | |||
2374 | /* | 2374 | /* |
2375 | * Clean out tx queue | 2375 | * Clean out tx queue |
2376 | */ | 2376 | */ |
2377 | if (test_bit(FLAG_MPI, &ai->flags) && skb_queue_len (&ai->txq) > 0) { | 2377 | if (test_bit(FLAG_MPI, &ai->flags) && !skb_queue_empty(&ai->txq)) { |
2378 | struct sk_buff *skb = NULL; | 2378 | struct sk_buff *skb = NULL; |
2379 | for (;(skb = skb_dequeue(&ai->txq));) | 2379 | for (;(skb = skb_dequeue(&ai->txq));) |
2380 | dev_kfree_skb(skb); | 2380 | dev_kfree_skb(skb); |
@@ -3287,7 +3287,7 @@ exitrx: | |||
3287 | if (status & EV_TXEXC) | 3287 | if (status & EV_TXEXC) |
3288 | get_tx_error(apriv, -1); | 3288 | get_tx_error(apriv, -1); |
3289 | spin_lock_irqsave(&apriv->aux_lock, flags); | 3289 | spin_lock_irqsave(&apriv->aux_lock, flags); |
3290 | if (skb_queue_len (&apriv->txq)) { | 3290 | if (!skb_queue_empty(&apriv->txq)) { |
3291 | spin_unlock_irqrestore(&apriv->aux_lock,flags); | 3291 | spin_unlock_irqrestore(&apriv->aux_lock,flags); |
3292 | mpi_send_packet (dev); | 3292 | mpi_send_packet (dev); |
3293 | } else { | 3293 | } else { |
diff --git a/drivers/net/wireless/airo_cs.c b/drivers/net/wireless/airo_cs.c index f10a9523034a..bf25584d68d3 100644 --- a/drivers/net/wireless/airo_cs.c +++ b/drivers/net/wireless/airo_cs.c | |||
@@ -33,7 +33,6 @@ | |||
33 | #include <linux/timer.h> | 33 | #include <linux/timer.h> |
34 | #include <linux/netdevice.h> | 34 | #include <linux/netdevice.h> |
35 | 35 | ||
36 | #include <pcmcia/version.h> | ||
37 | #include <pcmcia/cs_types.h> | 36 | #include <pcmcia/cs_types.h> |
38 | #include <pcmcia/cs.h> | 37 | #include <pcmcia/cs.h> |
39 | #include <pcmcia/cistpl.h> | 38 | #include <pcmcia/cistpl.h> |
@@ -210,11 +209,6 @@ static dev_link_t *airo_attach(void) | |||
210 | link->next = dev_list; | 209 | link->next = dev_list; |
211 | dev_list = link; | 210 | dev_list = link; |
212 | client_reg.dev_info = &dev_info; | 211 | client_reg.dev_info = &dev_info; |
213 | client_reg.EventMask = | ||
214 | CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL | | ||
215 | CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET | | ||
216 | CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME; | ||
217 | client_reg.event_handler = &airo_event; | ||
218 | client_reg.Version = 0x0210; | 212 | client_reg.Version = 0x0210; |
219 | client_reg.event_callback_args.client_data = link; | 213 | client_reg.event_callback_args.client_data = link; |
220 | ret = pcmcia_register_client(&link->handle, &client_reg); | 214 | ret = pcmcia_register_client(&link->handle, &client_reg); |
@@ -574,6 +568,7 @@ static struct pcmcia_driver airo_driver = { | |||
574 | .name = "airo_cs", | 568 | .name = "airo_cs", |
575 | }, | 569 | }, |
576 | .attach = airo_attach, | 570 | .attach = airo_attach, |
571 | .event = airo_event, | ||
577 | .detach = airo_detach, | 572 | .detach = airo_detach, |
578 | .id_table = airo_ids, | 573 | .id_table = airo_ids, |
579 | }; | 574 | }; |
diff --git a/drivers/net/wireless/airport.c b/drivers/net/wireless/airport.c index b4f4bd7956a2..9d496703c465 100644 --- a/drivers/net/wireless/airport.c +++ b/drivers/net/wireless/airport.c | |||
@@ -184,7 +184,7 @@ static int airport_hard_reset(struct orinoco_private *priv) | |||
184 | } | 184 | } |
185 | 185 | ||
186 | static int | 186 | static int |
187 | airport_attach(struct macio_dev *mdev, const struct of_match *match) | 187 | airport_attach(struct macio_dev *mdev, const struct of_device_id *match) |
188 | { | 188 | { |
189 | struct orinoco_private *priv; | 189 | struct orinoco_private *priv; |
190 | struct net_device *dev; | 190 | struct net_device *dev; |
@@ -266,16 +266,16 @@ MODULE_AUTHOR("Benjamin Herrenschmidt <benh@kernel.crashing.org>"); | |||
266 | MODULE_DESCRIPTION("Driver for the Apple Airport wireless card."); | 266 | MODULE_DESCRIPTION("Driver for the Apple Airport wireless card."); |
267 | MODULE_LICENSE("Dual MPL/GPL"); | 267 | MODULE_LICENSE("Dual MPL/GPL"); |
268 | 268 | ||
269 | static struct of_match airport_match[] = | 269 | static struct of_device_id airport_match[] = |
270 | { | 270 | { |
271 | { | 271 | { |
272 | .name = "radio", | 272 | .name = "radio", |
273 | .type = OF_ANY_MATCH, | ||
274 | .compatible = OF_ANY_MATCH | ||
275 | }, | 273 | }, |
276 | {}, | 274 | {}, |
277 | }; | 275 | }; |
278 | 276 | ||
277 | MODULE_DEVICE_TABLE (of, airport_match); | ||
278 | |||
279 | static struct macio_driver airport_driver = | 279 | static struct macio_driver airport_driver = |
280 | { | 280 | { |
281 | .name = DRIVER_NAME, | 281 | .name = DRIVER_NAME, |
diff --git a/drivers/net/wireless/atmel_cs.c b/drivers/net/wireless/atmel_cs.c index 86379d4998ac..ff031a3985b3 100644 --- a/drivers/net/wireless/atmel_cs.c +++ b/drivers/net/wireless/atmel_cs.c | |||
@@ -43,7 +43,6 @@ | |||
43 | #include <linux/moduleparam.h> | 43 | #include <linux/moduleparam.h> |
44 | #include <linux/device.h> | 44 | #include <linux/device.h> |
45 | 45 | ||
46 | #include <pcmcia/version.h> | ||
47 | #include <pcmcia/cs_types.h> | 46 | #include <pcmcia/cs_types.h> |
48 | #include <pcmcia/cs.h> | 47 | #include <pcmcia/cs.h> |
49 | #include <pcmcia/cistpl.h> | 48 | #include <pcmcia/cistpl.h> |
@@ -218,11 +217,6 @@ static dev_link_t *atmel_attach(void) | |||
218 | link->next = dev_list; | 217 | link->next = dev_list; |
219 | dev_list = link; | 218 | dev_list = link; |
220 | client_reg.dev_info = &dev_info; | 219 | client_reg.dev_info = &dev_info; |
221 | client_reg.EventMask = | ||
222 | CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL | | ||
223 | CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET | | ||
224 | CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME; | ||
225 | client_reg.event_handler = &atmel_event; | ||
226 | client_reg.Version = 0x0210; | 220 | client_reg.Version = 0x0210; |
227 | client_reg.event_callback_args.client_data = link; | 221 | client_reg.event_callback_args.client_data = link; |
228 | ret = pcmcia_register_client(&link->handle, &client_reg); | 222 | ret = pcmcia_register_client(&link->handle, &client_reg); |
@@ -668,12 +662,13 @@ static struct pcmcia_device_id atmel_ids[] = { | |||
668 | MODULE_DEVICE_TABLE(pcmcia, atmel_ids); | 662 | MODULE_DEVICE_TABLE(pcmcia, atmel_ids); |
669 | 663 | ||
670 | static struct pcmcia_driver atmel_driver = { | 664 | static struct pcmcia_driver atmel_driver = { |
671 | .owner = THIS_MODULE, | 665 | .owner = THIS_MODULE, |
672 | .drv = { | 666 | .drv = { |
673 | .name = "atmel_cs", | 667 | .name = "atmel_cs", |
674 | }, | 668 | }, |
675 | .attach = atmel_attach, | 669 | .attach = atmel_attach, |
676 | .detach = atmel_detach, | 670 | .event = atmel_event, |
671 | .detach = atmel_detach, | ||
677 | .id_table = atmel_ids, | 672 | .id_table = atmel_ids, |
678 | }; | 673 | }; |
679 | 674 | ||
diff --git a/drivers/net/wireless/netwave_cs.c b/drivers/net/wireless/netwave_cs.c index e12bd75b2694..5f507c49907b 100644 --- a/drivers/net/wireless/netwave_cs.c +++ b/drivers/net/wireless/netwave_cs.c | |||
@@ -62,7 +62,6 @@ | |||
62 | #endif /* WIRELESS_EXT > 12 */ | 62 | #endif /* WIRELESS_EXT > 12 */ |
63 | #endif | 63 | #endif |
64 | 64 | ||
65 | #include <pcmcia/version.h> | ||
66 | #include <pcmcia/cs_types.h> | 65 | #include <pcmcia/cs_types.h> |
67 | #include <pcmcia/cs.h> | 66 | #include <pcmcia/cs.h> |
68 | #include <pcmcia/cistpl.h> | 67 | #include <pcmcia/cistpl.h> |
@@ -491,11 +490,6 @@ static dev_link_t *netwave_attach(void) | |||
491 | link->next = dev_list; | 490 | link->next = dev_list; |
492 | dev_list = link; | 491 | dev_list = link; |
493 | client_reg.dev_info = &dev_info; | 492 | client_reg.dev_info = &dev_info; |
494 | client_reg.EventMask = | ||
495 | CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL | | ||
496 | CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET | | ||
497 | CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME; | ||
498 | client_reg.event_handler = &netwave_event; | ||
499 | client_reg.Version = 0x0210; | 493 | client_reg.Version = 0x0210; |
500 | client_reg.event_callback_args.client_data = link; | 494 | client_reg.event_callback_args.client_data = link; |
501 | ret = pcmcia_register_client(&link->handle, &client_reg); | 495 | ret = pcmcia_register_client(&link->handle, &client_reg); |
@@ -1680,6 +1674,7 @@ static struct pcmcia_driver netwave_driver = { | |||
1680 | .name = "netwave_cs", | 1674 | .name = "netwave_cs", |
1681 | }, | 1675 | }, |
1682 | .attach = netwave_attach, | 1676 | .attach = netwave_attach, |
1677 | .event = netwave_event, | ||
1683 | .detach = netwave_detach, | 1678 | .detach = netwave_detach, |
1684 | .id_table = netwave_ids, | 1679 | .id_table = netwave_ids, |
1685 | }; | 1680 | }; |
diff --git a/drivers/net/wireless/orinoco_cs.c b/drivers/net/wireless/orinoco_cs.c index 597c4586d049..368d2f962f67 100644 --- a/drivers/net/wireless/orinoco_cs.c +++ b/drivers/net/wireless/orinoco_cs.c | |||
@@ -31,7 +31,6 @@ | |||
31 | #include <linux/etherdevice.h> | 31 | #include <linux/etherdevice.h> |
32 | #include <linux/wireless.h> | 32 | #include <linux/wireless.h> |
33 | 33 | ||
34 | #include <pcmcia/version.h> | ||
35 | #include <pcmcia/cs_types.h> | 34 | #include <pcmcia/cs_types.h> |
36 | #include <pcmcia/cs.h> | 35 | #include <pcmcia/cs.h> |
37 | #include <pcmcia/cistpl.h> | 36 | #include <pcmcia/cistpl.h> |
@@ -186,11 +185,6 @@ orinoco_cs_attach(void) | |||
186 | dev_list = link; | 185 | dev_list = link; |
187 | 186 | ||
188 | client_reg.dev_info = &dev_info; | 187 | client_reg.dev_info = &dev_info; |
189 | client_reg.EventMask = | ||
190 | CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL | | ||
191 | CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET | | ||
192 | CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME; | ||
193 | client_reg.event_handler = &orinoco_cs_event; | ||
194 | client_reg.Version = 0x0210; /* FIXME: what does this mean? */ | 188 | client_reg.Version = 0x0210; /* FIXME: what does this mean? */ |
195 | client_reg.event_callback_args.client_data = link; | 189 | client_reg.event_callback_args.client_data = link; |
196 | 190 | ||
@@ -664,6 +658,7 @@ static struct pcmcia_driver orinoco_driver = { | |||
664 | .name = DRIVER_NAME, | 658 | .name = DRIVER_NAME, |
665 | }, | 659 | }, |
666 | .attach = orinoco_cs_attach, | 660 | .attach = orinoco_cs_attach, |
661 | .event = orinoco_cs_event, | ||
667 | .detach = orinoco_cs_detach, | 662 | .detach = orinoco_cs_detach, |
668 | .id_table = orinoco_cs_ids, | 663 | .id_table = orinoco_cs_ids, |
669 | }; | 664 | }; |
diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c index 31652af52eac..0e0ba614259a 100644 --- a/drivers/net/wireless/ray_cs.c +++ b/drivers/net/wireless/ray_cs.c | |||
@@ -46,7 +46,6 @@ | |||
46 | #include <linux/skbuff.h> | 46 | #include <linux/skbuff.h> |
47 | #include <linux/ethtool.h> | 47 | #include <linux/ethtool.h> |
48 | 48 | ||
49 | #include <pcmcia/version.h> | ||
50 | #include <pcmcia/cs_types.h> | 49 | #include <pcmcia/cs_types.h> |
51 | #include <pcmcia/cs.h> | 50 | #include <pcmcia/cs.h> |
52 | #include <pcmcia/cistpl.h> | 51 | #include <pcmcia/cistpl.h> |
@@ -393,11 +392,6 @@ static dev_link_t *ray_attach(void) | |||
393 | link->next = dev_list; | 392 | link->next = dev_list; |
394 | dev_list = link; | 393 | dev_list = link; |
395 | client_reg.dev_info = &dev_info; | 394 | client_reg.dev_info = &dev_info; |
396 | client_reg.EventMask = | ||
397 | CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL | | ||
398 | CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET | | ||
399 | CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME; | ||
400 | client_reg.event_handler = &ray_event; | ||
401 | client_reg.Version = 0x0210; | 395 | client_reg.Version = 0x0210; |
402 | client_reg.event_callback_args.client_data = link; | 396 | client_reg.event_callback_args.client_data = link; |
403 | 397 | ||
@@ -2916,6 +2910,7 @@ static struct pcmcia_driver ray_driver = { | |||
2916 | .name = "ray_cs", | 2910 | .name = "ray_cs", |
2917 | }, | 2911 | }, |
2918 | .attach = ray_attach, | 2912 | .attach = ray_attach, |
2913 | .event = ray_event, | ||
2919 | .detach = ray_detach, | 2914 | .detach = ray_detach, |
2920 | .id_table = ray_ids, | 2915 | .id_table = ray_ids, |
2921 | }; | 2916 | }; |
diff --git a/drivers/net/wireless/wavelan_cs.c b/drivers/net/wireless/wavelan_cs.c index 89532fd92941..f6130a53b796 100644 --- a/drivers/net/wireless/wavelan_cs.c +++ b/drivers/net/wireless/wavelan_cs.c | |||
@@ -4684,12 +4684,6 @@ wavelan_attach(void) | |||
4684 | 4684 | ||
4685 | /* Register with Card Services */ | 4685 | /* Register with Card Services */ |
4686 | client_reg.dev_info = &dev_info; | 4686 | client_reg.dev_info = &dev_info; |
4687 | client_reg.EventMask = | ||
4688 | CS_EVENT_REGISTRATION_COMPLETE | | ||
4689 | CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL | | ||
4690 | CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET | | ||
4691 | CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME; | ||
4692 | client_reg.event_handler = &wavelan_event; | ||
4693 | client_reg.Version = 0x0210; | 4687 | client_reg.Version = 0x0210; |
4694 | client_reg.event_callback_args.client_data = link; | 4688 | client_reg.event_callback_args.client_data = link; |
4695 | 4689 | ||
@@ -4904,6 +4898,7 @@ static struct pcmcia_driver wavelan_driver = { | |||
4904 | .name = "wavelan_cs", | 4898 | .name = "wavelan_cs", |
4905 | }, | 4899 | }, |
4906 | .attach = wavelan_attach, | 4900 | .attach = wavelan_attach, |
4901 | .event = wavelan_event, | ||
4907 | .detach = wavelan_detach, | 4902 | .detach = wavelan_detach, |
4908 | .id_table = wavelan_ids, | 4903 | .id_table = wavelan_ids, |
4909 | }; | 4904 | }; |
diff --git a/drivers/net/wireless/wavelan_cs.p.h b/drivers/net/wireless/wavelan_cs.p.h index ea2ef8dddb92..677ff71883cb 100644 --- a/drivers/net/wireless/wavelan_cs.p.h +++ b/drivers/net/wireless/wavelan_cs.p.h | |||
@@ -452,7 +452,6 @@ | |||
452 | #include <pcmcia/cistpl.h> | 452 | #include <pcmcia/cistpl.h> |
453 | #include <pcmcia/cisreg.h> | 453 | #include <pcmcia/cisreg.h> |
454 | #include <pcmcia/ds.h> | 454 | #include <pcmcia/ds.h> |
455 | #include <pcmcia/version.h> | ||
456 | 455 | ||
457 | /* Wavelan declarations */ | 456 | /* Wavelan declarations */ |
458 | #include "i82593.h" /* Definitions for the Intel chip */ | 457 | #include "i82593.h" /* Definitions for the Intel chip */ |
diff --git a/drivers/net/wireless/wl3501_cs.c b/drivers/net/wireless/wl3501_cs.c index e3a900482d92..dd902126d018 100644 --- a/drivers/net/wireless/wl3501_cs.c +++ b/drivers/net/wireless/wl3501_cs.c | |||
@@ -49,7 +49,6 @@ | |||
49 | 49 | ||
50 | #include <net/iw_handler.h> | 50 | #include <net/iw_handler.h> |
51 | 51 | ||
52 | #include <pcmcia/version.h> | ||
53 | #include <pcmcia/cs_types.h> | 52 | #include <pcmcia/cs_types.h> |
54 | #include <pcmcia/cs.h> | 53 | #include <pcmcia/cs.h> |
55 | #include <pcmcia/cistpl.h> | 54 | #include <pcmcia/cistpl.h> |
@@ -2005,13 +2004,6 @@ static dev_link_t *wl3501_attach(void) | |||
2005 | link->next = wl3501_dev_list; | 2004 | link->next = wl3501_dev_list; |
2006 | wl3501_dev_list = link; | 2005 | wl3501_dev_list = link; |
2007 | client_reg.dev_info = &wl3501_dev_info; | 2006 | client_reg.dev_info = &wl3501_dev_info; |
2008 | client_reg.EventMask = CS_EVENT_CARD_INSERTION | | ||
2009 | CS_EVENT_RESET_PHYSICAL | | ||
2010 | CS_EVENT_CARD_RESET | | ||
2011 | CS_EVENT_CARD_REMOVAL | | ||
2012 | CS_EVENT_PM_SUSPEND | | ||
2013 | CS_EVENT_PM_RESUME; | ||
2014 | client_reg.event_handler = wl3501_event; | ||
2015 | client_reg.Version = 0x0210; | 2007 | client_reg.Version = 0x0210; |
2016 | client_reg.event_callback_args.client_data = link; | 2008 | client_reg.event_callback_args.client_data = link; |
2017 | ret = pcmcia_register_client(&link->handle, &client_reg); | 2009 | ret = pcmcia_register_client(&link->handle, &client_reg); |
@@ -2246,12 +2238,13 @@ static struct pcmcia_device_id wl3501_ids[] = { | |||
2246 | MODULE_DEVICE_TABLE(pcmcia, wl3501_ids); | 2238 | MODULE_DEVICE_TABLE(pcmcia, wl3501_ids); |
2247 | 2239 | ||
2248 | static struct pcmcia_driver wl3501_driver = { | 2240 | static struct pcmcia_driver wl3501_driver = { |
2249 | .owner = THIS_MODULE, | 2241 | .owner = THIS_MODULE, |
2250 | .drv = { | 2242 | .drv = { |
2251 | .name = "wl3501_cs", | 2243 | .name = "wl3501_cs", |
2252 | }, | 2244 | }, |
2253 | .attach = wl3501_attach, | 2245 | .attach = wl3501_attach, |
2254 | .detach = wl3501_detach, | 2246 | .event = wl3501_event, |
2247 | .detach = wl3501_detach, | ||
2255 | .id_table = wl3501_ids, | 2248 | .id_table = wl3501_ids, |
2256 | }; | 2249 | }; |
2257 | 2250 | ||