diff options
author | Bartlomiej Sieka <tur@semihalf.com> | 2006-03-08 08:32:43 +0100 |
---|---|---|
committer | Bartlomiej Sieka <tur@semihalf.com> | 2006-03-08 08:32:43 +0100 |
commit | 3d65390e2116f53f5ee6615ad92262613198b66c (patch) | |
tree | 934111e89cbbfe5cb520c70819ef1cde7ee677b7 | |
parent | addb2e1650fdf872334478393f482dfdce965a61 (diff) | |
download | u-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.c | 2 |
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... "); |