From: Tony Lindgren Date: Fri, 7 Jun 2013 21:55:04 +0000 (-0700) Subject: ARM: OMAP2+: Fix serial init for device tree based booting X-Git-Tag: v3.11-rc1~155^2~17^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=82702ea11ddfe0e43382e1fa5b66d807d8114916;p=platform%2Fupstream%2Fkernel-adaptation-pc.git ARM: OMAP2+: Fix serial init for device tree based booting 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 Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index f660156..a7cf8d7 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c @@ -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;