diff options
Diffstat (limited to 'drivers/serial/bfin_5xx.c')
-rw-r--r-- | drivers/serial/bfin_5xx.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c index a9d202717829..22569bd5d821 100644 --- a/drivers/serial/bfin_5xx.c +++ b/drivers/serial/bfin_5xx.c | |||
@@ -635,13 +635,12 @@ bfin_serial_set_termios(struct uart_port *port, struct ktermios *termios, | |||
635 | 635 | ||
636 | if (termios->c_cflag & CSTOPB) | 636 | if (termios->c_cflag & CSTOPB) |
637 | lcr |= STB; | 637 | lcr |= STB; |
638 | if (termios->c_cflag & PARENB) { | 638 | if (termios->c_cflag & PARENB) |
639 | lcr |= PEN; | 639 | lcr |= PEN; |
640 | if (!(termios->c_cflag & PARODD)) | 640 | if (!(termios->c_cflag & PARODD)) |
641 | lcr |= EPS; | 641 | lcr |= EPS; |
642 | if (termios->c_cflag & CMSPAR) | 642 | if (termios->c_cflag & CMSPAR) |
643 | lcr |= STP; | 643 | lcr |= STP; |
644 | } | ||
645 | 644 | ||
646 | port->read_status_mask = OE; | 645 | port->read_status_mask = OE; |
647 | if (termios->c_iflag & INPCK) | 646 | if (termios->c_iflag & INPCK) |