]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Blackfin: print out Flash: before checking it
authorMike Frysinger <vapier@gentoo.org>
Mon, 6 Oct 2008 08:01:26 +0000 (04:01 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 23 Mar 2009 19:14:53 +0000 (15:14 -0400)
If there is some problem in the flash init/checking code, it's nicer to see
the message "Flash:" before crashing.  This way the source of the problem
is a bit more straightforward.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
lib_blackfin/board.c

index cc89590094a24cbc0c6e81f53eb8ba7c5a339a36..49465d2a058a706c543b8f7d989c8a2724e9c143 100644 (file)
@@ -327,8 +327,8 @@ void board_init_r(gd_t * id, ulong dest_addr)
 #if    !defined(CONFIG_SYS_NO_FLASH)
        /* Initialize the flash and protect u-boot by default */
        extern flash_info_t flash_info[];
-       ulong size = flash_init();
        puts("Flash: ");
+       ulong size = flash_init();
        print_size(size, "\n");
        flash_protect(FLAG_PROTECT_SET, CONFIG_SYS_FLASH_BASE,
                CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN - 1,