[U-Boot] [Patch V4 2/7] armv8/fsl-layerscape: Remove reference to gdata

Gong Qianyu Qianyu.Gong at freescale.com
Wed Nov 11 10:58:35 CET 2015


The global_data pointer (gd) has been set earlier in crt0_64.S.
So there's no need to assign it again. Remove gdata since it is going
away in U-Boot.

Signed-off-by: Gong Qianyu <Qianyu.Gong at freescale.com>
---
V4:
 - No change.
V3:
 - New Patch.
 - Fix dead code.
 
 arch/arm/cpu/armv8/fsl-layerscape/spl.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm/cpu/armv8/fsl-layerscape/spl.c b/arch/arm/cpu/armv8/fsl-layerscape/spl.c
index ba551aa..e53ed9a 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/spl.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/spl.c
@@ -44,8 +44,6 @@ u32 spl_boot_mode(void)
 #ifdef CONFIG_SPL_BUILD
 void board_init_f(ulong dummy)
 {
-	/* Set global data pointer */
-	gd = &gdata;
 	/* Clear global data */
 	memset((void *)gd, 0, sizeof(gd_t));
 #ifdef CONFIG_LS2085A
-- 
2.1.0.27.g96db324



More information about the U-Boot mailing list