kernel/drivers/usb/serial/spcp8x5.c
.. .. @@ -281,10 +281,7 @@ 281 281 282 282 static void spcp8x5_init_termios(struct tty_struct *tty) 283 283 { 284 - tty->termios = tty_std_termios;285 - tty->termios.c_cflag = B115200 | CS8 | CREAD | HUPCL | CLOCAL;286 - tty->termios.c_ispeed = 115200;287 - tty->termios.c_ospeed = 115200;284 + tty_encode_baud_rate(tty, 115200, 115200);288 285 } 289 286 290 287 static void spcp8x5_set_termios(struct tty_struct *tty,