summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartlomiej Sieka <tur@semihalf.com>2006-03-08 08:32:43 +0100
committerBartlomiej Sieka <tur@semihalf.com>2006-03-08 08:32:43 +0100
commit3d65390e2116f53f5ee6615ad92262613198b66c (patch)
tree934111e89cbbfe5cb520c70819ef1cde7ee677b7
parentaddb2e1650fdf872334478393f482dfdce965a61 (diff)
downloadu-boot-imx-3d65390e2116f53f5ee6615ad92262613198b66c.zip
u-boot-imx-3d65390e2116f53f5ee6615ad92262613198b66c.tar.gz
u-boot-imx-3d65390e2116f53f5ee6615ad92262613198b66c.tar.bz2
Fixed a bug in saveenv(). Credit: Markus Klotzbuecher.
> @@ -115,7 +115,7 @@ int saveenv(void)
-rw-r--r--common/env_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/env_nand.c b/common/env_nand.c
index 4896853..4ae68c5 100644
--- a/common/env_nand.c
+++ b/common/env_nand.c
@@ -115,7 +115,7 @@ int saveenv(void)
int total, ret = 0;
puts ("Erasing Nand...");
- if (nand_erase(&nand_info[0], CFG_NEW_OFFSET, CFG_ENV_SIZE))
+ if (nand_erase(&nand_info[0], CFG_ENV_OFFSET, CFG_ENV_SIZE))
return 1;
puts ("Writing to Nand... ");