]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/tty/serial/serial_core.c
Merge 3.15-rc3 into tty-next
[linux-beck.git] / drivers / tty / serial / serial_core.c
index b68550d95a403dbc6d5ecb0faa4a5bb4d38cd86f..9a01ee4dda6df1fc1427e761a0b015d455cb12fb 100644 (file)
@@ -2239,6 +2239,9 @@ static void uart_poll_put_char(struct tty_driver *driver, int line, char ch)
                return;
 
        port = state->uart_port;
+
+       if (ch == '\n')
+               port->ops->poll_put_char(port, '\r');
        port->ops->poll_put_char(port, ch);
 }
 #endif