diff options
-rw-r--r-- | drivers/serial/altera_uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/altera_uart.c b/drivers/serial/altera_uart.c index dfc1ecc40abc..721216292a50 100644 --- a/drivers/serial/altera_uart.c +++ b/drivers/serial/altera_uart.c | |||
@@ -461,7 +461,7 @@ static int __init altera_uart_console_setup(struct console *co, char *options) | |||
461 | if (co->index < 0 || co->index >= CONFIG_SERIAL_ALTERA_UART_MAXPORTS) | 461 | if (co->index < 0 || co->index >= CONFIG_SERIAL_ALTERA_UART_MAXPORTS) |
462 | return -EINVAL; | 462 | return -EINVAL; |
463 | port = &altera_uart_ports[co->index].port; | 463 | port = &altera_uart_ports[co->index].port; |
464 | if (port->membase == 0) | 464 | if (!port->membase) |
465 | return -ENODEV; | 465 | return -ENODEV; |
466 | 466 | ||
467 | if (options) | 467 | if (options) |