diff options
-rw-r--r-- | drivers/serial/bfin_5xx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c index 318d69dce8e1..45c32b23d736 100644 --- a/drivers/serial/bfin_5xx.c +++ b/drivers/serial/bfin_5xx.c | |||
@@ -415,7 +415,8 @@ static void bfin_serial_dma_rx_chars(struct bfin_serial_port *uart) | |||
415 | 415 | ||
416 | void bfin_serial_rx_dma_timeout(struct bfin_serial_port *uart) | 416 | void bfin_serial_rx_dma_timeout(struct bfin_serial_port *uart) |
417 | { | 417 | { |
418 | int x_pos, pos, flags; | 418 | int x_pos, pos; |
419 | unsigned long flags; | ||
419 | 420 | ||
420 | spin_lock_irqsave(&uart->port.lock, flags); | 421 | spin_lock_irqsave(&uart->port.lock, flags); |
421 | 422 | ||
@@ -1088,7 +1089,7 @@ static void | |||
1088 | bfin_serial_console_write(struct console *co, const char *s, unsigned int count) | 1089 | bfin_serial_console_write(struct console *co, const char *s, unsigned int count) |
1089 | { | 1090 | { |
1090 | struct bfin_serial_port *uart = &bfin_serial_ports[co->index]; | 1091 | struct bfin_serial_port *uart = &bfin_serial_ports[co->index]; |
1091 | int flags = 0; | 1092 | unsigned long flags; |
1092 | 1093 | ||
1093 | spin_lock_irqsave(&uart->port.lock, flags); | 1094 | spin_lock_irqsave(&uart->port.lock, flags); |
1094 | uart_console_write(&uart->port, s, count, bfin_serial_console_putchar); | 1095 | uart_console_write(&uart->port, s, count, bfin_serial_console_putchar); |