OMAP2: serial.c: Fix number of uarts in early_init
authorThomas Weber <swirl@gmx.li>
Thu, 25 Feb 2010 09:40:19 +0000 (09:40 +0000)
committerTony Lindgren <tony@atomide.com>
Thu, 11 Mar 2010 22:50:00 +0000 (14:50 -0800)
commit21b90340207d324f92111e25ead1752533eeb9ca
treed42dc0c3481ae599529ec8914074c9b0ee6806c4
parent9e542f37ce20428170010baa36a0ecbfcc0b29bb
OMAP2: serial.c: Fix number of uarts in early_init

The omap_serial_early_init prints the following errors:

Could not get uart4_ick
Could not get uart4_fck

because all the uarts available in omap_uart[] will be initialized.
Only omap4430 and omap3630 have 4 uarts at the moment.
This patch reduces the number of uarts when cpu is not omap4430 or
omap3630.

Signed-off-by: Thomas Weber <weber@corscience.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/serial.c