diff options
author | Marek BehĂșn <marek.behun@nic.cz> | 2021-10-22 15:47:23 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-10-31 12:26:44 -0600 |
commit | b26334824b58150e82a8b202380169a9276cd161 (patch) | |
tree | 286eb808aa56853f829c0b85406ee94ef70d7e84 /board/freescale/ls1012ardb | |
parent | 535870f3b0fb09ee9b2885409f05304111464643 (diff) | |
download | u-boot-b26334824b58150e82a8b202380169a9276cd161.tar.gz u-boot-b26334824b58150e82a8b202380169a9276cd161.tar.bz2 u-boot-b26334824b58150e82a8b202380169a9276cd161.zip |
board: freescale: various boards: Let env subsystem set gd->env_addr
Various freescale boards set gd->env_addr to default_environment in
board_init(), conditional on CONFIG_ENV_IS_NOWHERE, but this is
redundant, since it is done by env_init() before board_init() is called.
Let the env subsystem handle this.
Signed-off-by: Marek BehĂșn <marek.behun@nic.cz>
Cc: Ramon Fried <rfried.dev@gmail.com>
Cc: Priyanka Jain <priyanka.jain@nxp.com>
Cc: Mian Yousaf Kaukab <ykaukab@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/freescale/ls1012ardb')
-rw-r--r-- | board/freescale/ls1012ardb/ls1012ardb.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/board/freescale/ls1012ardb/ls1012ardb.c b/board/freescale/ls1012ardb/ls1012ardb.c index 62e8af48cf..064fb4d39f 100644 --- a/board/freescale/ls1012ardb/ls1012ardb.c +++ b/board/freescale/ls1012ardb/ls1012ardb.c @@ -173,10 +173,6 @@ int board_init(void) erratum_a010315(); #endif -#ifdef CONFIG_ENV_IS_NOWHERE - gd->env_addr = (ulong)&default_environment[0]; -#endif - #ifdef CONFIG_FSL_CAAM sec_init(); #endif |