aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl3501_cs.c
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2005-07-07 20:59:00 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-07 21:24:05 -0400
commit1e212f3645a6b355de8c43a23376bc0e2ac49a63 (patch)
tree89324df417c19a1a63efb2ec6630e7d4b47181a0 /drivers/net/wireless/wl3501_cs.c
parentbf45d9b0ac108b11245203ebb082d30f5059846b (diff)
[PATCH] pcmcia: move event handler
Move the "event handler" to struct pcmcia_driver -- the unified event handler will disappear really soon, but switching it to struct pcmcia_driver in the meantime allows for better "step-by-step" patches. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/net/wireless/wl3501_cs.c')
-rw-r--r--drivers/net/wireless/wl3501_cs.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/drivers/net/wireless/wl3501_cs.c b/drivers/net/wireless/wl3501_cs.c
index e3a900482d92..e3aaaa5efccf 100644
--- a/drivers/net/wireless/wl3501_cs.c
+++ b/drivers/net/wireless/wl3501_cs.c
@@ -2005,13 +2005,6 @@ static dev_link_t *wl3501_attach(void)
2005 link->next = wl3501_dev_list; 2005 link->next = wl3501_dev_list;
2006 wl3501_dev_list = link; 2006 wl3501_dev_list = link;
2007 client_reg.dev_info = &wl3501_dev_info; 2007 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; 2008 client_reg.Version = 0x0210;
2016 client_reg.event_callback_args.client_data = link; 2009 client_reg.event_callback_args.client_data = link;
2017 ret = pcmcia_register_client(&link->handle, &client_reg); 2010 ret = pcmcia_register_client(&link->handle, &client_reg);
@@ -2246,12 +2239,13 @@ static struct pcmcia_device_id wl3501_ids[] = {
2246MODULE_DEVICE_TABLE(pcmcia, wl3501_ids); 2239MODULE_DEVICE_TABLE(pcmcia, wl3501_ids);
2247 2240
2248static struct pcmcia_driver wl3501_driver = { 2241static struct pcmcia_driver wl3501_driver = {
2249 .owner = THIS_MODULE, 2242 .owner = THIS_MODULE,
2250 .drv = { 2243 .drv = {
2251 .name = "wl3501_cs", 2244 .name = "wl3501_cs",
2252 }, 2245 },
2253 .attach = wl3501_attach, 2246 .attach = wl3501_attach,
2254 .detach = wl3501_detach, 2247 .event = wl3501_event,
2248 .detach = wl3501_detach,
2255 .id_table = wl3501_ids, 2249 .id_table = wl3501_ids,
2256}; 2250};
2257 2251