serial: omap: Remove the hardcode serial_omap_console_ports array.
authorShubhrajyoti D <shubhrajyoti@ti.com>
Wed, 3 Oct 2012 11:54:38 +0000 (17:24 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Oct 2012 18:29:11 +0000 (11:29 -0700)
commit40477d0e04fd8d004ee9c70ad57e397a6b6ead63
treeb259703dc68477680421b45dd80b1cd2933aad9e
parent7ba897d77ce2df4538c2d3e5bcf3640bde3a54cd
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>
drivers/tty/serial/omap-serial.c