]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
armv8: ls1043a: remove redundant code in board files
authorQianyu Gong <qianyu.gong@nxp.com>
Tue, 26 Apr 2016 04:51:42 +0000 (12:51 +0800)
committerYork Sun <york.sun@nxp.com>
Wed, 18 May 2016 15:51:45 +0000 (08:51 -0700)
gd->env_addr will be initialized in env_init() in
common/env_nowhere.c if CONFIG_ENV_IS_NOWHERE is defined.
So no need to do it again.

Signed-off-by: Gong Qianyu <Qianyu.Gong@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
board/freescale/ls1043aqds/ls1043aqds.c
board/freescale/ls1043ardb/ls1043ardb.c

index fc097d968a5b6d6770a12880f6d80dd9d6b4d205..ca393e862d7d40e7146fbe1d95d92eec02796d51 100644 (file)
@@ -317,10 +317,6 @@ int board_init(void)
 #ifdef CONFIG_LAYERSCAPE_NS_ACCESS
        enable_layerscape_ns_access();
 #endif
-
-#ifdef CONFIG_ENV_IS_NOWHERE
-       gd->env_addr = (ulong)&default_environment[0];
-#endif
        return 0;
 }
 
index 8d8013515a91cd1ed10e908e0791630dbaeb35f8..2ed5ce16ed5d373924b1420afc15a25c7fbe70e8 100644 (file)
@@ -19,7 +19,6 @@
 #include <fsl_csu.h>
 #include <fsl_esdhc.h>
 #include <fsl_ifc.h>
-#include <environment.h>
 #include <fsl_sec.h>
 #include "cpld.h"
 #ifdef CONFIG_U_QE
@@ -87,10 +86,6 @@ int board_init(void)
        init_final_memctl_regs();
 #endif
 
-#ifdef CONFIG_ENV_IS_NOWHERE
-       gd->env_addr = (ulong)&default_environment[0];
-#endif
-
 #ifdef CONFIG_LAYERSCAPE_NS_ACCESS
        enable_layerscape_ns_access();
 #endif