aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/pcmcia/nsp_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/scsi/pcmcia/nsp_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/scsi/pcmcia/nsp_cs.c')
-rw-r--r--drivers/scsi/pcmcia/nsp_cs.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/drivers/scsi/pcmcia/nsp_cs.c b/drivers/scsi/pcmcia/nsp_cs.c
index 91b3f28e7a19..c8755adfd917 100644
--- a/drivers/scsi/pcmcia/nsp_cs.c
+++ b/drivers/scsi/pcmcia/nsp_cs.c
@@ -1642,11 +1642,6 @@ static dev_link_t *nsp_cs_attach(void)
1642 link->next = dev_list; 1642 link->next = dev_list;
1643 dev_list = link; 1643 dev_list = link;
1644 client_reg.dev_info = &dev_info; 1644 client_reg.dev_info = &dev_info;
1645 client_reg.EventMask =
1646 CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL |
1647 CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET |
1648 CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME ;
1649 client_reg.event_handler = &nsp_cs_event;
1650 client_reg.Version = 0x0210; 1645 client_reg.Version = 0x0210;
1651 client_reg.event_callback_args.client_data = link; 1646 client_reg.event_callback_args.client_data = link;
1652 ret = pcmcia_register_client(&link->handle, &client_reg); 1647 ret = pcmcia_register_client(&link->handle, &client_reg);
@@ -2138,12 +2133,13 @@ static struct pcmcia_device_id nsp_cs_ids[] = {
2138MODULE_DEVICE_TABLE(pcmcia, nsp_cs_ids); 2133MODULE_DEVICE_TABLE(pcmcia, nsp_cs_ids);
2139 2134
2140static struct pcmcia_driver nsp_driver = { 2135static struct pcmcia_driver nsp_driver = {
2141 .owner = THIS_MODULE, 2136 .owner = THIS_MODULE,
2142 .drv = { 2137 .drv = {
2143 .name = "nsp_cs", 2138 .name = "nsp_cs",
2144 }, 2139 },
2145 .attach = nsp_cs_attach, 2140 .attach = nsp_cs_attach,
2146 .detach = nsp_cs_detach, 2141 .event = nsp_cs_event,
2142 .detach = nsp_cs_detach,
2147 .id_table = nsp_cs_ids, 2143 .id_table = nsp_cs_ids,
2148}; 2144};
2149#endif 2145#endif