]> git.sur5r.net Git - u-boot/commitdiff
ARM: hikey: Remove resetting gd->flags in board_init()
authorPeter Griffin <peter.griffin@linaro.org>
Thu, 10 Sep 2015 20:55:15 +0000 (21:55 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 28 Sep 2015 14:48:22 +0000 (10:48 -0400)
This causes exceptions and other strange behaviour
when enabling CONFIG_SYS_MALLOC_F_LEN which is required to
migrate the serial driver over to DM_SERIAL.

As GD_FLG_FULL_MALLOC_INIT flag gets reset, after relocation
we don't end up using the full malloc which ultimately ends up
causing a synchronus abort.

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
board/hisilicon/hikey/hikey.c

index 8c1271b4a4f04f4b792a12a857eb020bc95896d7..99487472179e036f19ecde4e96590ec0fa7d26d6 100644 (file)
@@ -269,8 +269,6 @@ int misc_init_r(void)
 
 int board_init(void)
 {
-       gd->flags = 0;
-
        return 0;
 }