Skip to content

Commit

Permalink
serial: xuartps: Fix cdns_uart_port[] definition.
Browse files Browse the repository at this point in the history
The code assumes that the array cdns_uart_port[] has dimension
CDNS_UART_NR_PORTS, so let us define it this way.

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Reviewed-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Thomas Betker authored and Greg Kroah-Hartman committed Mar 26, 2015
1 parent 9646e4f commit 6db6df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/xilinx_uartps.c
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ static struct uart_ops cdns_uart_ops = {
#endif
};

static struct uart_port cdns_uart_port[2];
static struct uart_port cdns_uart_port[CDNS_UART_NR_PORTS];

/**
* cdns_uart_get_port - Configure the port from platform device resource info
Expand Down

0 comments on commit 6db6df0

Please sign in to comment.