Cleanup STX GP3SSA code; fix build and compile problems.
[oweals/u-boot.git] / board / stxssa / stxssa.c
index 87d3d6f9949fa7f284b1d5bdd72de0e61192adee..0fb233d818a086cfa872ec882c500dd4397aba5e 100644 (file)
@@ -203,8 +203,9 @@ void
 reset_phy(void)
 {
        volatile uint *blatch;
+#if 0
        int     i;
-
+#endif
        blatch = (volatile uint *)CFG_LBC_CFGLATCH_BASE;
 
        /* reset Giga bit Ethernet port if needed here */
@@ -298,10 +299,10 @@ initdram (int board_type)
 {
        long dram_size = 0;
        extern long spd_sdram (void);
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
 
 #if defined(CONFIG_DDR_DLL)
        {
+               volatile immap_t *immap = (immap_t *)CFG_IMMR;
                volatile ccsr_gur_t *gur= &immap->im_gur;
                uint temp_ddrdll = 0;