rename CFG_ENV macros to CONFIG_ENV
[platform/kernel/u-boot.git] / board / sc520_cdp / flash_old.c
index 416b01d..b68626e 100644 (file)
@@ -101,7 +101,7 @@ ulong flash_init(void)
                        flashbase = SC520_FLASH_BANK0_BASE;
                        break;
                default:
-                       panic("configured to many flash banks!\n");
+                       panic("configured too many flash banks!\n");
                }
 
                for (j = 0; j < flash_info[i].sector_count; j++) {
@@ -119,10 +119,10 @@ ulong flash_init(void)
                      i386boot_end-SC520_FLASH_BANK0_BASE,
                      &flash_info[0]);
 
-#ifdef CFG_ENV_ADDR
+#ifdef CONFIG_ENV_ADDR
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_ENV_ADDR,
-                     CFG_ENV_ADDR + CFG_ENV_SIZE - 1,
+                     CONFIG_ENV_ADDR,
+                     CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1,
                      &flash_info[0]);
 #endif
        return size;