From: Gong Qianyu Date: Wed, 11 Nov 2015 09:58:35 +0000 (+0800) Subject: armv8/fsl-layerscape: Remove reference to gdata X-Git-Tag: v2016.01-rc2~108^2~15 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=18a0d8eb46587336cc87f8f86d9db8746285ffb3;p=u-boot armv8/fsl-layerscape: Remove reference to gdata 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 Reviewed-by: York Sun --- diff --git a/arch/arm/cpu/armv8/fsl-layerscape/spl.c b/arch/arm/cpu/armv8/fsl-layerscape/spl.c index 3dae228fed..f434c443ed 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)); #if defined(CONFIG_LS2080A) || defined(CONFIG_LS2085A)