at91: simplify spl board_init_f function
authorJosh Wu <josh.wu@atmel.com>
Fri, 23 Oct 2015 09:23:57 +0000 (17:23 +0800)
committerAndreas Bießmann <andreas.devel@googlemail.com>
Sun, 1 Nov 2015 21:02:14 +0000 (22:02 +0100)
crt0.S do both memset the bss section and call board_init_r for us, so
remove them from board_init_f().

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Andreas Bießmann <andreas.devel@googlemail.com>
arch/arm/mach-at91/spl_atmel.c

index 8ac53353e62d3a5755611d858995484e78434de3..b2fb51d0ac27fbb4c898c0b4fd10145f9e930cab 100644 (file)
@@ -98,9 +98,4 @@ void board_init_f(ulong dummy)
        preloader_console_init();
 
        mem_init();
-
-       /* Clear the BSS. */
-       memset(__bss_start, 0, __bss_end - __bss_start);
-
-       board_init_r(NULL, 0);
 }