]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/mpl/common/flash.c
rename CFG_ENV_IS_IN_FLASH in CONFIG_ENV_IS_IN_FLASH
[karo-tx-uboot.git] / board / mpl / common / flash.c
index 6f53192ac752ff57073e0468fe68431816945a63..a2e0244d89b355b047f0faf3b78a95ec5ee7ccc9 100644 (file)
@@ -160,7 +160,7 @@ unsigned long flash_init (void)
        unsigned long size_b1,flashcr,size_reg;
        int mode;
        extern char version_string;
-       char *p=&version_string;
+       char *p = &version_string;
 
        /* Since we are relocated, we can set-up the CS finally */
        setup_cs_reloc();
@@ -256,7 +256,7 @@ unsigned long flash_init (void)
                p++;
        }
 #else /* #if !defined(CONFIG_PATI) */
-#ifdef CFG_ENV_IS_IN_FLASH
+#ifdef CONFIG_ENV_IS_IN_FLASH
        /* ENV protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
                      CFG_ENV_ADDR,
@@ -398,7 +398,7 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
                return (0);                     /* no or unknown flash  */
        }
        value = addr2[1];                       /* device ID            */
-       /*      printf("Device value %x\n",value);                  */
+       /*      printf("Device value %x\n",value);                  */
        switch (value) {
        case (FLASH_WORD_SIZE)AMD_ID_F040B:
                info->flash_id += FLASH_AM040;