Correction patch
[oweals/u-boot.git] / board / evb64260 / sdram_init.c
index d9318d5e605552f4ea66ab8b4279b73d211515f8..fae6d1090dfdc7bb295deffb355f408cb657132f 100644 (file)
@@ -35,6 +35,8 @@
 #include "i2c.h"
 #include "64260.h"
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /* #define     DEBUG */
 #define        MAP_PCI
 
@@ -199,7 +201,6 @@ static int check_dimm (uchar slot, sdram_info_t * info)
  * the array which is passed in with the relevant information */
 static int check_dimm (uchar slot, sdram_info_t * info)
 {
-       DECLARE_GLOBAL_DATA_PTR;
        uchar addr = slot == 0 ? DIMM0_I2C_ADDR : DIMM1_I2C_ADDR;
        int ret;
        uchar rows, cols, sdram_banks, supp_cal, width, cal_val;
@@ -341,11 +342,7 @@ static int setup_sdram_common (sdram_info_t info[2])
                        tras_clocks = info[0].tras_clocks;
                if (!info[0].registered)
                        registered = 0;
-               if (info[0].ecc != 2indent: Standard input:491: Warning:old style assignment ambiguity in "=*".  Assuming "= *"
-
-indent: Standard input:492: Warning:old style assignment ambiguity in "=*".  Assuming "= *"
-
-)
+               if (info[0].ecc != 2)
                        ecc = 0;
        }