]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: OMAP2+: Fix serial init for device tree based booting
authorTony Lindgren <tony@atomide.com>
Fri, 7 Jun 2013 21:55:04 +0000 (14:55 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 12 Jun 2013 16:44:15 +0000 (09:44 -0700)
We don't want to call omap_serial_early_init() for device
tree based booting as the ports are initialized based on
the .dts entries.

Reviewed-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/serial.c

index f6601563aa6903f93e04f9656a58593907f89b0e..a7cf8d783bd00a7c1560e19294fc338583d17c19 100644 (file)
@@ -176,6 +176,9 @@ static char *cmdline_find_option(char *str)
 
 static int __init omap_serial_early_init(void)
 {
+       if (of_have_populated_dt())
+               return -ENODEV;
+
        do {
                char oh_name[MAX_UART_HWMOD_NAME_LEN];
                struct omap_hwmod *oh;