Merge with git://www.denx.de/git/u-boot.git
[oweals/u-boot.git] / board / gen860t / fpga.c
index 37788d5396a86af3b4ed1fd717ebca74bf35b906..2ba7e0e4207b92a8997b5b463fead7ff4f7fa62b 100644 (file)
@@ -32,6 +32,8 @@
 #include <command.h>
 #include "fpga.h"
 
+DECLARE_GLOBAL_DATA_PTR;
+
 #if (CONFIG_FPGA)
 
 #if 0
@@ -189,8 +191,6 @@ void fpga_selectmap_init (void)
  */
 int gen860t_init_fpga (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        int i;
 
        PRINTF ("%s:%d: Initialize FPGA interface (relocation offset = 0x%.8lx)\n", __FUNCTION__, __LINE__, gd->reloc_off);