]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: ls102xa: Remove reference to gdata
authorSimon Glass <sjg@chromium.org>
Tue, 23 Dec 2014 19:04:58 +0000 (12:04 -0700)
committerTom Rini <trini@ti.com>
Tue, 20 Jan 2015 15:15:46 +0000 (10:15 -0500)
The global_data pointer (gd) has already been set before board_init_f()
is called. We should not assign it again. We should also not use gdata since
it is going away.

Signed-off-by: Simon Glass <sjg@chromium.org>
board/freescale/ls1021aqds/ls1021aqds.c
board/freescale/ls1021atwr/ls1021atwr.c

index f08e54f178605f8ee7b867aea2eaf3988cb9917c..152da2d3e891c1641f2f75ba4c51962faf7f71f2 100644 (file)
@@ -219,9 +219,6 @@ void board_init_f(ulong dummy)
                 pinctl);
 #endif
 
-       /* Set global data pointer */
-       gd = &gdata;
-
        /* Clear the BSS */
        memset(__bss_start, 0, __bss_end - __bss_start);
 
index 8ab229ddf09040eafdb1a4289fac1d5504aa8fb1..027b67e6d588a4c17ae4f86d6a018e00999670bf 100644 (file)
@@ -287,9 +287,6 @@ int board_early_init_f(void)
 #ifdef CONFIG_SPL_BUILD
 void board_init_f(ulong dummy)
 {
-       /* Set global data pointer */
-       gd = &gdata;
-
        /* Clear the BSS */
        memset(__bss_start, 0, __bss_end - __bss_start);