/*
* Write an address range to the flash chip. Data must be written in
* FLASH_PAGESIZE chunks. The address range may be any size provided
-@@ -596,11 +680,8 @@ static int m25p80_write(struct mtd_info
+@@ -596,11 +680,8 @@ static int m25p80_write(struct mtd_info
return 1;
}
page_offset = to & (flash->page_size - 1);
-@@ -608,9 +689,7 @@ static int m25p80_write(struct mtd_info
+@@ -608,9 +689,7 @@ static int m25p80_write(struct mtd_info
if (page_offset + len <= flash->page_size) {
t[1].len = len;
} else {
u32 i;
-@@ -618,9 +697,7 @@ static int m25p80_write(struct mtd_info
+@@ -618,9 +697,7 @@ static int m25p80_write(struct mtd_info
page_size = flash->page_size - page_offset;
t[1].len = page_size;
/* write everything in flash->page_size chunks */
for (i = page_size; i < len; i += page_size) {
-@@ -628,19 +705,12 @@ static int m25p80_write(struct mtd_info
+@@ -628,19 +705,12 @@ static int m25p80_write(struct mtd_info
if (page_size > flash->page_size)
page_size = flash->page_size;
}
}
-@@ -1105,6 +1175,7 @@ static int m25p_probe(struct spi_device
+@@ -1105,6 +1175,7 @@ static int m25p_probe(struct spi_device
struct mtd_part_parser_data ppdata;
struct device_node *np = spi->dev.of_node;
int ret;
/* Platform data helps sort out which chip type we have, as
* well as how this board partitions it. If we don't have
-@@ -1187,6 +1258,12 @@ static int m25p_probe(struct spi_device
+@@ -1187,6 +1258,12 @@ static int m25p_probe(struct spi_device
flash->mtd._erase = m25p80_erase;
flash->mtd._read = m25p80_read;