OSDN Git Service

serial: sprd: correct the wrong sequence of arguments
[android-x86/kernel.git] / drivers / tty / serial / sprd_serial.c
index 747560f..2e34239 100644 (file)
@@ -240,7 +240,7 @@ static inline void sprd_rx(struct uart_port *port)
 
                if (lsr & (SPRD_LSR_BI | SPRD_LSR_PE |
                        SPRD_LSR_FE | SPRD_LSR_OE))
-                       if (handle_lsr_errors(port, &lsr, &flag))
+                       if (handle_lsr_errors(port, &flag, &lsr))
                                continue;
                if (uart_handle_sysrq_char(port, ch))
                        continue;