From b18a1db4a4e63a02f87ce2fee745b5b0932bbfb5 Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Sat, 27 Apr 2013 01:36:30 +0200 Subject: tty: update termios access due tty_struct changes commit adc8d746 ("tty: move the termios object into the tty") moved the struct ktermios inside struct tty_struct instead of keeping just a pointer to it. So, let's update the access to termios according to this change. Signed-off-by: Javier Martinez Canillas --- tty/tiny_tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tty/tiny_tty.c b/tty/tiny_tty.c index b63e443..889c789 100644 --- a/tty/tiny_tty.c +++ b/tty/tiny_tty.c @@ -232,12 +232,12 @@ static void tiny_set_termios(struct tty_struct *tty, struct ktermios *old_termio { unsigned int cflag; - cflag = tty->termios->c_cflag; + cflag = tty->termios.c_cflag; /* check that they really want us to change something */ if (old_termios) { if ((cflag == old_termios->c_cflag) && - (RELEVANT_IFLAG(tty->termios->c_iflag) == + (RELEVANT_IFLAG(tty->termios.c_iflag) == RELEVANT_IFLAG(old_termios->c_iflag))) { printk(KERN_DEBUG " - nothing to change...\n"); return; -- cgit v1.2.1-18-gbd029