From: Alexander Shiyan Date: Fri, 7 Feb 2014 14:16:06 +0000 (+0400) Subject: serial: max310x: Remove excess port configure at startup X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f4fcc40b564dd1920029053be9c4dd557b23a7ec;p=linux-beck.git 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 Signed-off-by: Greg Kroah-Hartman --- 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) 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,