3 @@ -779,7 +779,10 @@ static int flash_write_buf (int dev, int
4 erase_offset = (offset / blocklen) * blocklen;
6 /* Maximum area we may use */
7 - erase_len = top_of_range - erase_offset;
8 + if (mtd_type == MTD_NANDFLASH)
9 + erase_len = top_of_range - erase_offset;
11 + erase_len = blocklen;
13 blockstart = erase_offset;
14 /* Offset inside a block */