This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / bluetooth / dtl1_cs.c
index 79ec1ce..f3b423b 100644 (file)
@@ -28,7 +28,6 @@
 #include <linux/slab.h>
 #include <linux/types.h>
 #include <linux/sched.h>
-#include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/ptrace.h>
 #include <linux/ioport.h>
@@ -525,7 +524,8 @@ int dtl1_open(dtl1_info_t *info)
        spin_unlock_irqrestore(&(info->lock), flags);
 
        /* Timeout before it is safe to send the first HCI packet */
-       msleep(2000);
+       set_current_state(TASK_INTERRUPTIBLE);
+       schedule_timeout(HZ * 2);
 
        /* Register HCI device */
        if (hci_register_dev(hdev) < 0) {