From: Roel Kluin Date: Tue, 27 Apr 2010 21:16:33 +0000 (-0700) Subject: serial: two branches the same in timbuart_set_mctrl() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=44051996230510ccb125cfa552d464950d1767b9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git serial: two branches the same in timbuart_set_mctrl() CTS is a read only bit and we are to stop signal RTS if modem line TIOCM_RTS is not set. Thanks for suggestions by Richard Röjfors. Signed-off-by: Roel Kluin Acked-by: Richard Röjfors Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/serial/timbuart.c b/drivers/serial/timbuart.c index 786ba85c170b..62f389fdc2a3 100644 --- a/drivers/serial/timbuart.c +++ b/drivers/serial/timbuart.c @@ -220,7 +220,7 @@ static void timbuart_set_mctrl(struct uart_port *port, unsigned int mctrl) if (mctrl & TIOCM_RTS) iowrite8(TIMBUART_CTRL_RTS, port->membase + TIMBUART_CTRL); else - iowrite8(TIMBUART_CTRL_RTS, port->membase + TIMBUART_CTRL); + iowrite8(0, port->membase + TIMBUART_CTRL); } static void timbuart_mctrl_check(struct uart_port *port, u32 isr, u32 *ier)