Merge 3.16-rc5 into tty-next.
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jul 2014 22:52:12 +0000 (15:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jul 2014 22:52:12 +0000 (15:52 -0700)
We want those fixes in here as well.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1  2 
arch/arm/boot/dts/exynos4.dtsi
drivers/tty/serial/arc_uart.c
drivers/tty/serial/sunsab.c

Simple merge
index f8dc7d381956fe27d8ca16baf8519282dca8bb78,008c223eaf2647bc9a1ee2388ecca9562f3dfaba..a59d1d77e7506460bcac1968f4299a173c1fb466
@@@ -166,18 -172,18 +166,18 @@@ static void arc_serial_tx_chars(struct 
        int sent = 0;
        unsigned char ch;
  
 -      if (unlikely(uart->port.x_char)) {
 -              UART_SET_DATA(uart, uart->port.x_char);
 -              uart->port.icount.tx++;
 -              uart->port.x_char = 0;
 +      if (unlikely(port->x_char)) {
 +              UART_SET_DATA(port, port->x_char);
 +              port->icount.tx++;
 +              port->x_char = 0;
                sent = 1;
-       } else if (xmit->tail != xmit->head) {  /* TODO: uart_circ_empty */
+       } else if (!uart_circ_empty(xmit)) {
                ch = xmit->buf[xmit->tail];
                xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
 -              uart->port.icount.tx++;
 -              while (!(UART_GET_STATUS(uart) & TXEMPTY))
 +              port->icount.tx++;
 +              while (!(UART_GET_STATUS(port) & TXEMPTY))
                        cpu_relax();
 -              UART_SET_DATA(uart, ch);
 +              UART_SET_DATA(port, ch);
                sent = 1;
        }
  
Simple merge