From: Simon Glass Date: Tue, 23 Dec 2014 19:04:56 +0000 (-0700) Subject: imx: cm_fx6: Remove reference to gdata X-Git-Tag: v2015.04-rc1~75 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=57241b1d72dc9832a03533e0a8fabce3c5f97f6b;p=oweals%2Fu-boot.git imx: cm_fx6: Remove reference to gdata 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 Acked-by: Igor Grinberg Tested-by: Nikita Kiryanov Acked-by: Nikita Kiryanov --- diff --git a/board/compulab/cm_fx6/spl.c b/board/compulab/cm_fx6/spl.c index 6fe937b418..5b4b76f5b7 100644 --- a/board/compulab/cm_fx6/spl.c +++ b/board/compulab/cm_fx6/spl.c @@ -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