瀏覽代碼

m68k: fix debug call befor serial init

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>
Jens Scharsig (BuS Elektronik) 12 年之前
父節點
當前提交
aea5eee126
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      arch/m68k/lib/board.c

+ 2 - 2
arch/m68k/lib/board.c

@@ -403,14 +403,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)