From: Peter Griffin Date: Thu, 10 Sep 2015 20:55:15 +0000 (+0100) Subject: ARM: hikey: Remove resetting gd->flags in board_init() X-Git-Tag: KARO-TXSD-2017-03-15~3228 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=17024e772e79800917b256dd4b341878f5283f1d;p=karo-tx-uboot.git ARM: hikey: Remove resetting gd->flags in board_init() 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 Reviewed-by: Simon Glass --- diff --git a/board/hisilicon/hikey/hikey.c b/board/hisilicon/hikey/hikey.c index 8c1271b4a4..9948747217 100644 --- a/board/hisilicon/hikey/hikey.c +++ b/board/hisilicon/hikey/hikey.c @@ -269,8 +269,6 @@ int misc_init_r(void) int board_init(void) { - gd->flags = 0; - return 0; }