From: Igor Grinberg Date: Mon, 18 Apr 2011 21:43:26 +0000 (-0400) Subject: OMAP3: CM-T35: Move DECLARE_GLOBAL_DATA_PTR to file scope X-Git-Tag: v2011.06-rc1~131^2~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=557aa15594ce3c67ce0fdba1e99365e5ae14cc73;p=platform%2Fkernel%2Fu-boot.git OMAP3: CM-T35: Move DECLARE_GLOBAL_DATA_PTR to file scope Move DECLARE_GLOBAL_DATA_PTR to file scop Signed-off-by: Igor Grinberg Signed-off-by: Sandeep Paulraj --- diff --git a/board/cm_t35/cm_t35.c b/board/cm_t35/cm_t35.c index 459df0b..2eb9dac 100644 --- a/board/cm_t35/cm_t35.c +++ b/board/cm_t35/cm_t35.c @@ -41,6 +41,8 @@ #include #include +DECLARE_GLOBAL_DATA_PTR; + const omap3_sysinfo sysinfo = { DDR_DISCRETE, "CM-T35 board", @@ -73,8 +75,6 @@ static u32 gpmc_nand_config[GPMC_MAX_REG] = { */ int board_init(void) { - DECLARE_GLOBAL_DATA_PTR; - gpmc_init(); /* in SRAM or SDRAM, finish GPMC */ enable_gpmc_cs_config(gpmc_nand_config, &gpmc_cfg->cs[0],