Skip to contentSkip to conversation

ARM: OMAP2+: Fix serial init for device tree based booting

PATCH New Tony Lindgren 2 participants 2 messages Jun 7, 2013

Subsystems (3)
lore
Share & tools
lore

Tony Lindgren

author maintainer
#0 lore raw

PATCH 1/1 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.

arch/arm/mach-omap2/serial.c +3 -0
@@ -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;
#1 lore raw

PATCH 1/1 ARM: OMAP2+: Fix serial init for device tree based booting

Quoted 5 lines · Tony Lindgren

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.

Quoted 16 lines
arch/arm/mach-omap2/serial.c +3 -1
@@ -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;
--

To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html