diff mbox

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

Message ID 1447235920-46321-3-git-send-email-Qianyu.Gong@freescale.com
State Accepted
Delegated to: York Sun
Headers show

Commit Message

Gong Qianyu Nov. 11, 2015, 9:58 a.m. UTC
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>
---
V4:
 - No change.
V3:
 - New Patch.
 - Fix dead code.
 
 arch/arm/cpu/armv8/fsl-layerscape/spl.c | 2 --
 1 file changed, 2 deletions(-)

Comments

York Sun Nov. 30, 2015, 5:13 p.m. UTC | #1
On 11/11/2015 01:58 AM, Gong Qianyu wrote:
> 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>
> ---
> V4:
>  - No change.
> V3:
>  - New Patch.
>  - Fix dead code.
>  
>  arch/arm/cpu/armv8/fsl-layerscape/spl.c | 2 --
>  1 file changed, 2 deletions(-)

Applied to fsl-qoriq master. Thanks.

York
diff mbox

Patch

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