Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6db6df0e authored by Thomas Betker's avatar Thomas Betker Committed by Greg Kroah-Hartman
Browse files

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: default avatarThomas Betker <thomas.betker@rohde-schwarz.com>
Reviewed-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9646e4fe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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