]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/hamradio/6pack.c
tty: add throttle/unthrottle helpers
[linux-2.6-omap-h63xx.git] / drivers / net / hamradio / 6pack.c
index 82a36266dfc92999324f68414e92dd95a8dec0a2..9d5721287d6f50d7030499e4470b41a36f4cb6b5 100644 (file)
@@ -491,9 +491,7 @@ static void sixpack_receive_buf(struct tty_struct *tty,
        sixpack_decode(sp, buf, count1);
 
        sp_put(sp);
-       if (test_and_clear_bit(TTY_THROTTLED, &tty->flags)
-           && tty->ops->unthrottle)
-               tty->ops->unthrottle(tty);
+       tty_unthrottle(tty);
 }
 
 /*