diff options
author | Thomas Betker <thomas.betker@rohde-schwarz.com> | 2015-03-11 17:39:26 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-26 17:52:29 -0400 |
commit | 6db6df0e4a1b913810fc9063bbb332476ce316b7 (patch) | |
tree | a1a2cf2d78bc7386f0a402177349b38c30276067 /drivers/tty/serial | |
parent | 9646e4fee42d080ad484eef005691a17ed9cb8e7 (diff) |
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 <thomas.betker@rohde-schwarz.com>
Reviewed-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r-- | drivers/tty/serial/xilinx_uartps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index b8fbd4767c17..b0c2862a3daf 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c | |||
@@ -1010,7 +1010,7 @@ static struct uart_ops cdns_uart_ops = { | |||
1010 | #endif | 1010 | #endif |
1011 | }; | 1011 | }; |
1012 | 1012 | ||
1013 | static struct uart_port cdns_uart_port[2]; | 1013 | static struct uart_port cdns_uart_port[CDNS_UART_NR_PORTS]; |
1014 | 1014 | ||
1015 | /** | 1015 | /** |
1016 | * cdns_uart_get_port - Configure the port from platform device resource info | 1016 | * cdns_uart_get_port - Configure the port from platform device resource info |