Commit b61834b0 authored by Brian Norris's avatar Brian Norris

mtd: spi-nor: EXPORT symbols which could be used by module drivers

Fix errors like this:

    ERROR: "spi_nor_ids" [drivers/mtd/devices/m25p80.ko] undefined!
    ERROR: "spi_nor_scan" [drivers/mtd/devices/m25p80.ko] undefined!
    make[1]: *** [__modpost] Error 1
    make: *** [modules] Error 2
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent e46ecda7
...@@ -584,6 +584,7 @@ const struct spi_device_id spi_nor_ids[] = { ...@@ -584,6 +584,7 @@ const struct spi_device_id spi_nor_ids[] = {
{ "cat25128", CAT25_INFO(2048, 8, 64, 2, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) }, { "cat25128", CAT25_INFO(2048, 8, 64, 2, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
{ }, { },
}; };
EXPORT_SYMBOL_GPL(spi_nor_ids);
static const struct spi_device_id *spi_nor_read_id(struct spi_nor *nor) static const struct spi_device_id *spi_nor_read_id(struct spi_nor *nor)
{ {
...@@ -1081,6 +1082,7 @@ int spi_nor_scan(struct spi_nor *nor, const struct spi_device_id *id, ...@@ -1081,6 +1082,7 @@ int spi_nor_scan(struct spi_nor *nor, const struct spi_device_id *id,
mtd->eraseregions[i].numblocks); mtd->eraseregions[i].numblocks);
return 0; return 0;
} }
EXPORT_SYMBOL_GPL(spi_nor_scan);
const struct spi_device_id *spi_nor_match_id(char *name) const struct spi_device_id *spi_nor_match_id(char *name)
{ {
...@@ -1093,6 +1095,7 @@ const struct spi_device_id *spi_nor_match_id(char *name) ...@@ -1093,6 +1095,7 @@ const struct spi_device_id *spi_nor_match_id(char *name)
} }
return NULL; return NULL;
} }
EXPORT_SYMBOL_GPL(spi_nor_match_id);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_AUTHOR("Huang Shijie <shijie8@gmail.com>"); MODULE_AUTHOR("Huang Shijie <shijie8@gmail.com>");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment