--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
-@@ -1141,6 +1141,26 @@ static int spi_nor_check(struct spi_nor
+@@ -1148,6 +1148,26 @@ static int spi_nor_check(struct spi_nor
return 0;
}
int spi_nor_scan(struct spi_nor *nor, const char *name, enum read_mode mode)
{
const struct flash_info *info = NULL;
-@@ -1188,19 +1208,9 @@ int spi_nor_scan(struct spi_nor *nor, co
+@@ -1195,19 +1215,9 @@ int spi_nor_scan(struct spi_nor *nor, co
mutex_init(&nor->lock);
if (!mtd->name)
mtd->name = dev_name(dev);
-@@ -1367,6 +1377,45 @@ int spi_nor_scan(struct spi_nor *nor, co
+@@ -1374,6 +1384,45 @@ int spi_nor_scan(struct spi_nor *nor, co
}
EXPORT_SYMBOL_GPL(spi_nor_scan);