vserver 1.9.3
[linux-2.6.git] / drivers / usb / class / bluetty.c
index 2e8f520..4d8e018 100644 (file)
@@ -988,21 +988,13 @@ static void bluetooth_write_bulk_callback (struct urb *urb, struct pt_regs *regs
 static void bluetooth_softint(void *private)
 {
        struct usb_bluetooth *bluetooth = get_usb_bluetooth ((struct usb_bluetooth *)private, __FUNCTION__);
-       struct tty_struct *tty;
 
        dbg("%s", __FUNCTION__);
 
-       if (!bluetooth) {
+       if (!bluetooth)
                return;
-       }
-
-       tty = bluetooth->tty;
-       if ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && tty->ldisc.write_wakeup) {
-               dbg("%s - write wakeup call.", __FUNCTION__);
-               (tty->ldisc.write_wakeup)(tty);
-       }
 
-       wake_up_interruptible(&tty->write_wait);
+       tty_wakeup(bluetooth->tty);
 }