From: Andrew Morton Cc: Alan Cox Signed-off-by: Andrew Morton --- net/bluetooth/rfcomm/tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN net/bluetooth/rfcomm/tty.c~tty-switch-to-ktermios-bluetooth-fix net/bluetooth/rfcomm/tty.c --- a/net/bluetooth/rfcomm/tty.c~tty-switch-to-ktermios-bluetooth-fix +++ a/net/bluetooth/rfcomm/tty.c @@ -752,9 +752,9 @@ static int rfcomm_tty_ioctl(struct tty_s return -ENOIOCTLCMD; } -static void rfcomm_tty_set_termios(struct tty_struct *tty, struct termios *old) +static void rfcomm_tty_set_termios(struct tty_struct *tty, struct ktermios *old) { - struct termios *new = (struct termios *) tty->termios; + struct ktermios *new = tty->termios; int old_baud_rate = tty_termios_baud_rate(old); int new_baud_rate = tty_termios_baud_rate(new); _