#include <linux/poll.h>
#include <linux/pci.h>
#include <linux/list.h>
+#include <linux/delay.h>
#include <linux/workqueue.h>
#include <asm/atomic.h>
static int major_dev = -1;
-extern struct proc_dir_entry *proc_pccard;
+static struct proc_dir_entry *proc_pccard;
/*====================================================================*/
* Ugly. But we want to wait for the socket threads to have started up.
* We really should let the drivers themselves drive some of this..
*/
- current->state = TASK_INTERRUPTIBLE;
- schedule_timeout(HZ/4);
+ msleep(250);
init_waitqueue_head(&s->queue);
init_waitqueue_head(&s->request);