summaryrefslogtreecommitdiffstats
path: root/tty/tiny_serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'tty/tiny_serial.c')
-rw-r--r--tty/tiny_serial.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tty/tiny_serial.c b/tty/tiny_serial.c
index 67acda3..4fda428 100644
--- a/tty/tiny_serial.c
+++ b/tty/tiny_serial.c
@@ -96,6 +96,7 @@ static void tiny_timer(unsigned long data)
{
struct uart_port *port;
struct tty_struct *tty;
+ struct tty_port *tty_port;
port = (struct uart_port *)data;
@@ -107,11 +108,13 @@ static void tiny_timer(unsigned long data)
if (!tty)
return;
+ tty_port = tty->port;
+
/* add one character to the tty port */
/* this doesn't actually push the data through unless tty->low_latency is set */
- tty_insert_flip_char(tty, TINY_DATA_CHARACTER, 0);
+ tty_insert_flip_char(tty_port, TINY_DATA_CHARACTER, 0);
- tty_flip_buffer_push(tty);
+ tty_flip_buffer_push(tty_port);
/* resubmit the timer again */
timer->expires = jiffies + DELAY_TIME;