summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Grinberg <grinberg@compulab.co.il>2011-04-18 17:43:26 -0400
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-04-27 19:38:06 +0200
commit557aa15594ce3c67ce0fdba1e99365e5ae14cc73 (patch)
treec6a4a6ed9c2684e4782a7abd92e205e2c2a3c8e6
parent915162daaad18f5cd1446187c846fec853e9ea87 (diff)
downloadu-boot-imx-557aa15594ce3c67ce0fdba1e99365e5ae14cc73.zip
u-boot-imx-557aa15594ce3c67ce0fdba1e99365e5ae14cc73.tar.gz
u-boot-imx-557aa15594ce3c67ce0fdba1e99365e5ae14cc73.tar.bz2
OMAP3: CM-T35: Move DECLARE_GLOBAL_DATA_PTR to file scope
Move DECLARE_GLOBAL_DATA_PTR to file scop Signed-off-by: Igor Grinberg <grinberg@compulab.co.il> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
-rw-r--r--board/cm_t35/cm_t35.c4
1 files changed, 2 insertions, 2 deletions
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 <asm/arch/sys_proto.h>
#include <asm/mach-types.h>
+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],