serial: sprd: correct the wrong sequence of arguments
diff mbox series

Message ID
State Accepted
Commit 9c801e313195addaf11c16e155f50789d6ebfd19
Headers show
  • serial: sprd: correct the wrong sequence of arguments
Related show

Commit Message

Chunyan Zhang Sept. 5, 2019, 7:41 a.m. UTC
From: Chunyan Zhang <>

The sequence of arguments which was passed to handle_lsr_errors() didn't
match the parameters defined in that function, &lsr was passed to flag
and &flag was passed to lsr, this patch fixed that.

Fixes: b7396a38fb28 ("tty/serial: Add Spreadtrum sc9836-uart driver support")
Signed-off-by: Chunyan Zhang <>
Signed-off-by: Chunyan Zhang <>
 drivers/tty/serial/sprd_serial.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/drivers/tty/serial/sprd_serial.c b/drivers/tty/serial/sprd_serial.c
index c4d8c77c1261..4eb5dbfbc46d 100644
--- a/drivers/tty/serial/sprd_serial.c
+++ b/drivers/tty/serial/sprd_serial.c
@@ -609,7 +609,7 @@  static inline void sprd_rx(struct uart_port *port)
 		if (lsr & (SPRD_LSR_BI | SPRD_LSR_PE |
-			if (handle_lsr_errors(port, &lsr, &flag))
+			if (handle_lsr_errors(port, &flag, &lsr))
 		if (uart_handle_sysrq_char(port, ch))