diff options
author | Jouni Malinen <jkmaline@cc.hut.fi> | 2005-07-30 15:49:55 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-07-30 18:17:22 -0400 |
commit | 47e362cf6942de8b3a227929bf8bab578d92ad49 (patch) | |
tree | 80072940762e0b471eed05fcbdd6502e57d97678 | |
parent | de745fb27983770ebfdeaa70f8a36f791fb33786 (diff) |
[PATCH] hostap update
Update hostap_cs to use new PCMCIA event callback registration.
Signed-off-by: Jouni Malinen <jkmaline@cc.hut.fi>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
-rw-r--r-- | drivers/net/wireless/hostap/hostap_cs.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/net/wireless/hostap/hostap_cs.c b/drivers/net/wireless/hostap/hostap_cs.c index e66c797bdc8b..3ca52e7aea1d 100644 --- a/drivers/net/wireless/hostap/hostap_cs.c +++ b/drivers/net/wireless/hostap/hostap_cs.c | |||
@@ -1,7 +1,6 @@ | |||
1 | #define PRISM2_PCCARD | 1 | #define PRISM2_PCCARD |
2 | 2 | ||
3 | #include <linux/config.h> | 3 | #include <linux/config.h> |
4 | #include <linux/version.h> | ||
5 | #include <linux/module.h> | 4 | #include <linux/module.h> |
6 | #include <linux/init.h> | 5 | #include <linux/init.h> |
7 | #include <linux/if.h> | 6 | #include <linux/if.h> |
@@ -13,7 +12,6 @@ | |||
13 | #include <linux/wireless.h> | 12 | #include <linux/wireless.h> |
14 | #include <net/iw_handler.h> | 13 | #include <net/iw_handler.h> |
15 | 14 | ||
16 | #include <pcmcia/version.h> | ||
17 | #include <pcmcia/cs_types.h> | 15 | #include <pcmcia/cs_types.h> |
18 | #include <pcmcia/cs.h> | 16 | #include <pcmcia/cs.h> |
19 | #include <pcmcia/cistpl.h> | 17 | #include <pcmcia/cistpl.h> |
@@ -532,12 +530,6 @@ static dev_link_t *prism2_attach(void) | |||
532 | link->next = dev_list; | 530 | link->next = dev_list; |
533 | dev_list = link; | 531 | dev_list = link; |
534 | client_reg.dev_info = &dev_info; | 532 | client_reg.dev_info = &dev_info; |
535 | client_reg.Attributes = INFO_IO_CLIENT; | ||
536 | client_reg.EventMask = CS_EVENT_CARD_INSERTION | | ||
537 | CS_EVENT_CARD_REMOVAL | | ||
538 | CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET | | ||
539 | CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME; | ||
540 | client_reg.event_handler = &prism2_event; | ||
541 | client_reg.Version = 0x0210; | 533 | client_reg.Version = 0x0210; |
542 | client_reg.event_callback_args.client_data = link; | 534 | client_reg.event_callback_args.client_data = link; |
543 | ret = pcmcia_register_client(&link->handle, &client_reg); | 535 | ret = pcmcia_register_client(&link->handle, &client_reg); |
@@ -931,6 +923,7 @@ static struct pcmcia_driver hostap_driver = { | |||
931 | .attach = prism2_attach, | 923 | .attach = prism2_attach, |
932 | .detach = prism2_detach, | 924 | .detach = prism2_detach, |
933 | .owner = THIS_MODULE, | 925 | .owner = THIS_MODULE, |
926 | .event = prism2_event, | ||
934 | }; | 927 | }; |
935 | 928 | ||
936 | static int __init init_prism2_pccard(void) | 929 | static int __init init_prism2_pccard(void) |