addr += mtd->erasesize;
len -= mtd->erasesize;
-@@ -1098,7 +1121,7 @@ static int set_quad_mode(struct spi_nor
+@@ -1099,7 +1122,7 @@ static int set_quad_mode(struct spi_nor
static int spi_nor_check(struct spi_nor *nor)
{
if (!nor->dev || !nor->read || !nor->write ||
pr_err("spi-nor: please fill all the necessary fields!\n");
return -EINVAL;
}
-@@ -1299,6 +1322,12 @@ int spi_nor_scan(struct spi_nor *nor, co
+@@ -1300,6 +1323,12 @@ int spi_nor_scan(struct spi_nor *nor, co
nor->addr_width = 3;
}