Browse Source

tty/serial: atmel_serial: remove dev_dbg in atmel_set_termios

This fixes a driver bug which stopped the whole system (in case
of serial console).
This log message is not useful anyway as this information is
printed elsewhere.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Nicolas Ferre 11 years ago
parent
commit
c972d806fd
1 changed files with 0 additions and 3 deletions
  1. 0 3
      drivers/tty/serial/atmel_serial.c

+ 0 - 3
drivers/tty/serial/atmel_serial.c

@@ -1853,13 +1853,10 @@ static void atmel_set_termios(struct uart_port *port, struct ktermios *termios,
 	mode &= ~ATMEL_US_USMODE;
 	mode &= ~ATMEL_US_USMODE;
 
 
 	if (atmel_port->rs485.flags & SER_RS485_ENABLED) {
 	if (atmel_port->rs485.flags & SER_RS485_ENABLED) {
-		dev_dbg(port->dev, "Setting UART to RS485\n");
 		if ((atmel_port->rs485.delay_rts_after_send) > 0)
 		if ((atmel_port->rs485.delay_rts_after_send) > 0)
 			UART_PUT_TTGR(port,
 			UART_PUT_TTGR(port,
 					atmel_port->rs485.delay_rts_after_send);
 					atmel_port->rs485.delay_rts_after_send);
 		mode |= ATMEL_US_USMODE_RS485;
 		mode |= ATMEL_US_USMODE_RS485;
-	} else {
-		dev_dbg(port->dev, "Setting UART to RS232\n");
 	}
 	}
 
 
 	/* set the parity, stop bits and data size */
 	/* set the parity, stop bits and data size */