]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
zynq: Remove reference to gdata
authorSimon Glass <sjg@chromium.org>
Tue, 23 Dec 2014 19:04:55 +0000 (12:04 -0700)
committerTom Rini <trini@ti.com>
Tue, 20 Jan 2015 15:15:15 +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>
arch/arm/cpu/armv7/zynq/spl.c

index 31627f970efbec334262c0dcfc54e10a9794a668..0936bdd393bee8398e8ab246b4d1db82379b6c7f 100644 (file)
@@ -20,9 +20,6 @@ void board_init_f(ulong dummy)
        /* Clear the BSS. */
        memset(__bss_start, 0, __bss_end - __bss_start);
 
-       /* Set global data pointer. */
-       gd = &gdata;
-
        preloader_console_init();
        arch_cpu_init();
        board_init_r(NULL, 0);