armv8/fsl-layerscape: Remove reference to gdata
authorGong Qianyu <Qianyu.Gong@freescale.com>
Wed, 11 Nov 2015 09:58:35 +0000 (17:58 +0800)
committerYork Sun <yorksun@freescale.com>
Mon, 30 Nov 2015 17:11:10 +0000 (09:11 -0800)
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@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
arch/arm/cpu/armv8/fsl-layerscape/spl.c

index 3dae228fed3a3b9543ea88ecb3f1eb3b582f6839..f434c443ed5176940645f5edf7ac8c0479d8eebe 100644 (file)
@@ -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)