aboutsummaryrefslogtreecommitdiffstats
path: root/package/uboot-envtools/patches/003-nor-eraselen.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/uboot-envtools/patches/003-nor-eraselen.patch')
-rw-r--r--package/uboot-envtools/patches/003-nor-eraselen.patch14
1 files changed, 0 insertions, 14 deletions
diff --git a/package/uboot-envtools/patches/003-nor-eraselen.patch b/package/uboot-envtools/patches/003-nor-eraselen.patch
deleted file mode 100644
index c6eb59a726..0000000000
--- a/package/uboot-envtools/patches/003-nor-eraselen.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- a/fw_env.c
-+++ b/fw_env.c
-@@ -790,7 +790,10 @@ static int flash_write_buf (int dev, int
- erase_offset = (offset / blocklen) * blocklen;
-
- /* Maximum area we may use */
-- erase_len = top_of_range - erase_offset;
-+ if (mtd_type == MTD_NANDFLASH)
-+ erase_len = top_of_range - erase_offset;
-+ else
-+ erase_len = blocklen;
-
- blockstart = erase_offset;
- /* Offset inside a block */