Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82702ea1 authored by Tony Lindgren's avatar Tony Lindgren
Browse files

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: default avatarKevin Hilman <khilman@linaro.org>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 415ab328
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;