]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/bluetooth/hci_ldisc.c
tty: add throttle/unthrottle helpers
[linux-2.6-omap-h63xx.git] / drivers / bluetooth / hci_ldisc.c
index a6c2619ec782a99dbc04b372be4c4a4fc862ce6d..e5cd856a2fea9cce67404059f0e52d8a82ac5d2c 100644 (file)
@@ -370,9 +370,7 @@ static void hci_uart_tty_receive(struct tty_struct *tty, const u8 *data, char *f
        hu->hdev->stat.byte_rx += count;
        spin_unlock(&hu->rx_lock);
 
-       if (test_and_clear_bit(TTY_THROTTLED, &tty->flags) &&
-                                       tty->ops->unthrottle)
-               tty->ops->unthrottle(tty);
+       tty_unthrottle(tty);
 }
 
 static int hci_uart_register_dev(struct hci_uart *hu)