omap2+: Fix omap_serial_early_init to work with init_early hook
authorTony Lindgren <tony@atomide.com>
Mon, 14 Feb 2011 23:40:20 +0000 (15:40 -0800)
committerTony Lindgren <tony@atomide.com>
Mon, 14 Feb 2011 23:40:49 +0000 (15:40 -0800)
commit3e16f92536334ccb464ed88cf4d8cc0dd43da106
tree0ad6d2c96672cae89d339d0305e8001cde2833c7
parent44dc046e93eb98d41048954f700b1927f7e288ed
omap2+: Fix omap_serial_early_init to work with init_early hook

The new init_early hook happens at the end of setup_arch,
which is too early for kzalloc. However, there's no need
to call omap_serial_early_init that early, so fix this
by setting it up as a core_initcall.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Tested-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/io.c
arch/arm/mach-omap2/serial.c
arch/arm/plat-omap/include/plat/serial.h