serial: xuartps: Fix cdns_uart_port[] definition.

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 <[email protected]>
Reviewed-by: Michal Simek <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
Thomas Betker 2015-03-11 22:39:26 +01:00 • committed by Greg Kroah-Hartman
commit 6db6df0e4a

View file

@ -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