diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2014-02-07 09:16:06 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-13 12:33:05 -0500 |
commit | f4fcc40b564dd1920029053be9c4dd557b23a7ec (patch) | |
tree | 0d6f08a2b1377e1374c1524202290713e19046da /drivers/tty | |
parent | 1e6128b63597adf97f1865fba7d778a6f8ccb7a0 (diff) |
serial: max310x: Remove excess port configure at startup
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>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/max310x.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/tty/serial/max310x.c b/drivers/tty/serial/max310x.c index 202c1fb6542d..1fb3895a0a3a 100644 --- a/drivers/tty/serial/max310x.c +++ b/drivers/tty/serial/max310x.c | |||
@@ -896,12 +896,6 @@ static int max310x_startup(struct uart_port *port) | |||
896 | 896 | ||
897 | s->devtype->power(port, 1); | 897 | s->devtype->power(port, 1); |
898 | 898 | ||
899 | /* Configure baud rate, 9600 as default */ | ||
900 | max310x_set_baud(port, 9600); | ||
901 | |||
902 | /* Configure LCR register, 8N1 mode by default */ | ||
903 | max310x_port_write(port, MAX310X_LCR_REG, MAX310X_LCR_WORD_LEN_8); | ||
904 | |||
905 | /* Configure MODE1 register */ | 899 | /* Configure MODE1 register */ |
906 | max310x_port_update(port, MAX310X_MODE1_REG, | 900 | max310x_port_update(port, MAX310X_MODE1_REG, |
907 | MAX310X_MODE1_TRNSCVCTRL_BIT, | 901 | MAX310X_MODE1_TRNSCVCTRL_BIT, |