Skip to content

Commit

Permalink
serial: max310x: Remove excess port configure at startup
Browse files Browse the repository at this point in the history
Serial core calls set_termios() after port startup, so there are
no reason to setup port twice.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Alexander Shiyan authored and Greg Kroah-Hartman committed Feb 13, 2014
1 parent 1e6128b commit f4fcc40
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/tty/serial/max310x.c
Original file line number Diff line number Diff line change
Expand Up @@ -896,12 +896,6 @@ static int max310x_startup(struct uart_port *port)

s->devtype->power(port, 1);

/* Configure baud rate, 9600 as default */
max310x_set_baud(port, 9600);

/* Configure LCR register, 8N1 mode by default */
max310x_port_write(port, MAX310X_LCR_REG, MAX310X_LCR_WORD_LEN_8);

/* Configure MODE1 register */
max310x_port_update(port, MAX310X_MODE1_REG,
MAX310X_MODE1_TRNSCVCTRL_BIT,
Expand Down

0 comments on commit f4fcc40

Please sign in to comment.