cyclades: push down tty_port_tty_get
authorJiri Slaby <jslaby@suse.cz>
Thu, 3 Jan 2013 14:53:08 +0000 (15:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jan 2013 06:43:15 +0000 (22:43 -0800)
commitdabe2c1385cd53d91c0a318c0fb7d2c015c61458
tree417c0165f0caee36a0060f03bc6ca171585c7962
parent6732c8bb8671acbdac6cdc93dd72ddd581dd5e25
cyclades: push down tty_port_tty_get

Now, the tty is not needed at all places in the ISR. So we can just
request in on demand when really needed.

This cleans TX and RX paths a bit as the indentation level can be
dropped by two now when we also invert the char_count if condition.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/cyclades.c