serial: omap: Remove the hardcode serial_omap_console_ports array.

Currently the array serial_omap_console_ports is hard coded to 4.
Make it depend on the maximum uart count.
Post to [cfc55bc ARM: OMAP2+: serial: Change MAX_HSUART_PORTS to 6]
the max ports is 6.

Cc: AnilKumar Ch <anilkumar@ti.com>
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Shubhrajyoti D 2012-10-03 17:24:38 +05:30 коммит произвёл Greg Kroah-Hartman
Родитель 7ba897d77c
Коммит 40477d0e04
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1077,7 +1077,7 @@ out:
#ifdef CONFIG_SERIAL_OMAP_CONSOLE
static struct uart_omap_port *serial_omap_console_ports[4];
static struct uart_omap_port *serial_omap_console_ports[OMAP_MAX_HSUART_PORTS];
static struct uart_driver serial_omap_reg;