aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2006-11-22 09:57:56 -0500
committerDavid Howells <dhowells@redhat.com>2006-11-22 09:57:56 -0500
commitc4028958b6ecad064b1a6303a6a5906d4fe48d73 (patch)
tree1c4c89652c62a75da09f9b9442012007e4ac6250 /drivers/pcmcia
parent65f27f38446e1976cc98fd3004b110fedcddd189 (diff)
WorkStruct: make allyesconfig
Fix up for make allyesconfig. Signed-Off-By: David Howells <dhowells@redhat.com>
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r--drivers/pcmcia/ds.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c
index a20d84d707d9..e469a46a388b 100644
--- a/drivers/pcmcia/ds.c
+++ b/drivers/pcmcia/ds.c
@@ -698,9 +698,10 @@ static int pcmcia_card_add(struct pcmcia_socket *s)
698} 698}
699 699
700 700
701static void pcmcia_delayed_add_pseudo_device(void *data) 701static void pcmcia_delayed_add_pseudo_device(struct work_struct *work)
702{ 702{
703 struct pcmcia_socket *s = data; 703 struct pcmcia_socket *s =
704 container_of(work, struct pcmcia_socket, device_add);
704 pcmcia_device_add(s, 0); 705 pcmcia_device_add(s, 0);
705 s->pcmcia_state.device_add_pending = 0; 706 s->pcmcia_state.device_add_pending = 0;
706} 707}
@@ -1246,7 +1247,7 @@ static int __devinit pcmcia_bus_add_socket(struct class_device *class_dev,
1246 init_waitqueue_head(&socket->queue); 1247 init_waitqueue_head(&socket->queue);
1247#endif 1248#endif
1248 INIT_LIST_HEAD(&socket->devices_list); 1249 INIT_LIST_HEAD(&socket->devices_list);
1249 INIT_WORK(&socket->device_add, pcmcia_delayed_add_pseudo_device, socket); 1250 INIT_WORK(&socket->device_add, pcmcia_delayed_add_pseudo_device);
1250 memset(&socket->pcmcia_state, 0, sizeof(u8)); 1251 memset(&socket->pcmcia_state, 0, sizeof(u8));
1251 socket->device_count = 0; 1252 socket->device_count = 0;
1252 1253