summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2012-08-20 19:56:27 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-05 13:15:07 -0700
commite2c654254e3379f69ce4a2e3f322374dd071337d (patch)
treedb7cbf1b65db034c572f0d7f0057ff10193760a6
parentb8ede90cce2c63c5c592acb5d756cc14fcac448a (diff)
downloadop-kernel-dev-e2c654254e3379f69ce4a2e3f322374dd071337d.zip
op-kernel-dev-e2c654254e3379f69ce4a2e3f322374dd071337d.tar.gz
serial: sunsu.c - don't explicitly tie array size to dynamic entity
The addition of 8250-like entities continues to grow, while this driver has a snapshot of a select few common 8250 UARTs. So it has no need to grow with the new additions, since it calls out its own (largely historic) static list which does not grow. Cc: "David S. Miller" <davem@davemloft.net> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/tty/serial/sunsu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/sunsu.c b/drivers/tty/serial/sunsu.c
index 675303b..d919095 100644
--- a/drivers/tty/serial/sunsu.c
+++ b/drivers/tty/serial/sunsu.c
@@ -61,7 +61,7 @@ static char *su_typev[] = { "su(???)", "su(mouse)", "su(kbd)", "su(serial)" };
/*
* Here we define the default xmit fifo size used for each type of UART.
*/
-static const struct serial_uart_config uart_config[PORT_MAX_8250+1] = {
+static const struct serial_uart_config uart_config[] = {
{ "unknown", 1, 0 },
{ "8250", 1, 0 },
{ "16450", 1, 0 },
OpenPOWER on IntegriCloud