This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / bluetooth / btuart_cs.c
index b44fa7d..a18be62 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>
@@ -546,7 +545,8 @@ int btuart_open(btuart_info_t *info)
        btuart_change_speed(info, DEFAULT_BAUD_RATE);
 
        /* Timeout before it is safe to send the first HCI packet */
-       msleep(1000);
+       set_current_state(TASK_INTERRUPTIBLE);
+       schedule_timeout(HZ);
 
        /* Register HCI device */
        if (hci_register_dev(hdev) < 0) {