aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/omap-serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/serial/omap-serial.c')
-rw-r--r--drivers/tty/serial/omap-serial.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c
index f3ff0ca377c..7b0303d3402 100644
--- a/drivers/tty/serial/omap-serial.c
+++ b/drivers/tty/serial/omap-serial.c
@@ -166,11 +166,12 @@ static void serial_omap_stop_rx(struct uart_port *port)
166 pm_runtime_put_autosuspend(&up->pdev->dev); 166 pm_runtime_put_autosuspend(&up->pdev->dev);
167} 167}
168 168
169static inline void receive_chars(struct uart_omap_port *up, int *status) 169static inline void receive_chars(struct uart_omap_port *up,
170 unsigned int *status)
170{ 171{
171 struct tty_struct *tty = up->port.state->port.tty; 172 struct tty_struct *tty = up->port.state->port.tty;
172 unsigned int flag; 173 unsigned int flag, lsr = *status;
173 unsigned char ch, lsr = *status; 174 unsigned char ch = 0;
174 int max_count = 256; 175 int max_count = 256;
175 176
176 do { 177 do {