Skip to content

Commit

Permalink
ARM: OMAP2+: Fix serial init for device tree based booting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tony Lindgren committed Jun 12, 2013
1 parent 415ab32 commit 82702ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/mach-omap2/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 82702ea

Please sign in to comment.