Patchwork [U-Boot] m68k: fix debug call befor serial init

login
register
mail settings
Submitter esw@bus-elektronik.de
Date Jan. 16, 2013, 7:24 a.m.
Message ID <1358321050-549-1-git-send-email-esw@bus-elektronik.de>
Download mbox | patch
Permalink /patch/212418/
State Accepted
Delegated to: Jason Jin
Headers show

Comments

esw@bus-elektronik.de - Jan. 16, 2013, 7:24 a.m.
From: "Jens Scharsig (BuS Elektronik)" <esw@bus-elektronik.de>

There is a debug call in board.c befor serial interface was initialized.
This moves the debug code behind serial_initialize call.

Signed-off-by: Jens Scharsig (BuS Elektronik) <esw@bus-elektronik.de>
---
 arch/m68k/lib/board.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/arch/m68k/lib/board.c b/arch/m68k/lib/board.c
index e934cb6..14722e4 100644
--- a/arch/m68k/lib/board.c
+++ b/arch/m68k/lib/board.c
@@ -402,14 +402,14 @@  void board_init_r (gd_t *id, ulong dest_addr)
 
 	gd->flags |= GD_FLG_RELOC;	/* tell others: relocation done */
 
-	debug ("Now running in RAM - U-Boot at: %08lx\n", dest_addr);
-
 	WATCHDOG_RESET ();
 
 	gd->reloc_off =  dest_addr - CONFIG_SYS_MONITOR_BASE;
 
 	serial_initialize();
 
+	debug("Now running in RAM - U-Boot at: %08lx\n", dest_addr);
+
 	monitor_flash_len = (ulong)&__init_end - dest_addr;
 
 #if defined(CONFIG_NEEDS_MANUAL_RELOC)