[U-Boot] [PATCH v2 1/3] mx28evk: Remove extra CONFIG_ENV_SIZE

Fabio Estevam
2014-05-08T23:35:34Z

When building a target with CONFIG_ENV_IS_IN_SPI_FLASH the following build
warning is seen:

include/configs/mx28evk.h:73:0: warning: "CONFIG_ENV_SIZE" redefined [enabled by default]

Each target has its own CONFIG_ENV_SIZE definition, so remove the one that
does not belong to any target.

While at it, fix a typo.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
Changes since v1:
- None

include/configs/mx28evk.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h
index 9b9124a..e5370f3 100644
--- a/include/configs/mx28evk.h
+++ b/include/configs/mx28evk.h
@@ -48,7 +48,6 @@
#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1

/* Environment */
-#define CONFIG_ENV_SIZE (16 * 1024)
#define CONFIG_ENV_OVERWRITE

/* Environment is in MMC */
@@ -67,7 +66,7 @@
(CONFIG_ENV_OFFSET + CONFIG_ENV_RANGE)
#endif

-/* Environemnt is in SPI flash */
+/* Environment is in SPI flash */
#if defined(CONFIG_CMD_SF) && defined(CONFIG_ENV_IS_IN_SPI_FLASH)
#define CONFIG_SYS_REDUNDAND_ENVIRONMENT
#define CONFIG_ENV_SIZE 0x1000 /* 4KB */
--
1.8.3.2