summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/xilinx_uartps.c
diff options
context:
space:
mode:
authorThomas Betker <thomas.betker@rohde-schwarz.com>2015-03-11 22:39:26 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-26 22:52:29 +0100
commit6db6df0e4a1b913810fc9063bbb332476ce316b7 (patch)
treea1a2cf2d78bc7386f0a402177349b38c30276067 /drivers/tty/serial/xilinx_uartps.c
parent9646e4fee42d080ad484eef005691a17ed9cb8e7 (diff)
downloadblackbird-op-linux-6db6df0e4a1b913810fc9063bbb332476ce316b7.tar.gz
blackbird-op-linux-6db6df0e4a1b913810fc9063bbb332476ce316b7.zip
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/xilinx_uartps.c')
-rw-r--r--drivers/tty/serial/xilinx_uartps.c2
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 = {
#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
OpenPOWER on IntegriCloud