]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/hamradio/mkiss.c
tty: add throttle/unthrottle helpers
[linux-2.6-omap-h63xx.git] / drivers / net / hamradio / mkiss.c
index ebcc5adee7cc39ebbfb80300c645363aaecfcdc0..65166035aca0c81b5bea15d608bb88cf945ef24c 100644 (file)
@@ -936,9 +936,7 @@ static void mkiss_receive_buf(struct tty_struct *tty, const unsigned char *cp,
        }
 
        mkiss_put(ax);
-       if (test_and_clear_bit(TTY_THROTTLED, &tty->flags)
-           && tty->ops->unthrottle)
-               tty->ops->unthrottle(tty);
+       tty_unthrottle(tty);
 }
 
 /*