diff options
| -rw-r--r-- | drivers/serial/serial_core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c index 5f7ba1adb309..d7e28ab4c313 100644 --- a/drivers/serial/serial_core.c +++ b/drivers/serial/serial_core.c | |||
| @@ -1662,16 +1662,16 @@ static int uart_line_info(char *buf, struct uart_driver *drv, int i) | |||
| 1662 | struct uart_port *port = state->port; | 1662 | struct uart_port *port = state->port; |
| 1663 | char stat_buf[32]; | 1663 | char stat_buf[32]; |
| 1664 | unsigned int status; | 1664 | unsigned int status; |
| 1665 | int ret; | 1665 | int mmio, ret; |
| 1666 | 1666 | ||
| 1667 | if (!port) | 1667 | if (!port) |
| 1668 | return 0; | 1668 | return 0; |
| 1669 | 1669 | ||
| 1670 | mmio = port->iotype >= UPIO_MEM; | ||
| 1670 | ret = sprintf(buf, "%d: uart:%s %s%08lX irq:%d", | 1671 | ret = sprintf(buf, "%d: uart:%s %s%08lX irq:%d", |
| 1671 | port->line, uart_type(port), | 1672 | port->line, uart_type(port), |
| 1672 | port->iotype == UPIO_MEM ? "mmio:0x" : "port:", | 1673 | mmio ? "mmio:0x" : "port:", |
| 1673 | port->iotype == UPIO_MEM ? port->mapbase : | 1674 | mmio ? port->mapbase : (unsigned long) port->iobase, |
| 1674 | (unsigned long) port->iobase, | ||
| 1675 | port->irq); | 1675 | port->irq); |
| 1676 | 1676 | ||
| 1677 | if (port->type == PORT_UNKNOWN) { | 1677 | if (port->type == PORT_UNKNOWN) { |
