integrator: stop zeroing the gd flags
authorLinus Walleij <[email protected]>
Tue, 21 Apr 2015 13:35:59 +0000 (15:35 +0200)
committerTom Rini <[email protected]>
Thu, 23 Apr 2015 12:52:27 +0000 (08:52 -0400)
This assignment conflicts with code that add flags with
gd->flags |= FOO prior to the execution of this function.
Seems like a historical artifact and creates bugs with
early alloc().

Cc: Masahiro Yamada <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Acked-by: Simon Glass <[email protected]>
board/armltd/integrator/integrator.c

index f0fe0fd3aabe66ba0f096221eb8de985211e61ba..e94ac850c7515b66948a1f428cdab79619b2322c 100644 (file)
@@ -54,8 +54,6 @@ int board_init (void)
        /* adress of boot parameters */
        gd->bd->bi_boot_params = 0x00000100;
 
-       gd->flags = 0;
-
 #ifdef CONFIG_CM_REMAP
 extern void cm_remap(void);
        cm_remap();     /* remaps writeable memory to 0x00000000 */