]> git.sur5r.net Git - u-boot/commitdiff
imx: cm_fx6: Remove reference to gdata
authorSimon Glass <sjg@chromium.org>
Tue, 23 Dec 2014 19:04:56 +0000 (12:04 -0700)
committerTom Rini <trini@ti.com>
Tue, 20 Jan 2015 15:15:28 +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>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Tested-by: Nikita Kiryanov <nikita@compulab.co.il>
Acked-by: Nikita Kiryanov <nikita@compulab.co.il>
board/compulab/cm_fx6/spl.c

index 6fe937b4180fba98add32988d9820cc73d96680f..5b4b76f5b7329ca7b99e2da04272848a10f01fb4 100644 (file)
@@ -313,7 +313,6 @@ void board_init_f(ulong dummy)
 {
        struct mxc_ccm_reg *mxc_ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR;
 
-       gd = &gdata;
        /*
         * We don't use DMA in SPL, but we do need it in U-Boot. U-Boot
         * initializes DMA very early (before all board code), so the only