diff options
author | Brian Norris <computersforpeace@gmail.com> | 2014-04-08 21:22:57 -0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-04-14 14:22:59 -0400 |
commit | b61834b0d0ed504b9340a55c88977cb9539454df (patch) | |
tree | 2e80642820ec0797449f70ef73e4711860fab95c /drivers/mtd | |
parent | e46ecda764dc37f9fc6279d95ea2c007daef1a71 (diff) |
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: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/spi-nor/spi-nor.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index f7c9e638623b..5cd86eb2a5f0 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c | |||
@@ -584,6 +584,7 @@ const struct spi_device_id spi_nor_ids[] = { | |||
584 | { "cat25128", CAT25_INFO(2048, 8, 64, 2, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) }, | 584 | { "cat25128", CAT25_INFO(2048, 8, 64, 2, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) }, |
585 | { }, | 585 | { }, |
586 | }; | 586 | }; |
587 | EXPORT_SYMBOL_GPL(spi_nor_ids); | ||
587 | 588 | ||
588 | static const struct spi_device_id *spi_nor_read_id(struct spi_nor *nor) | 589 | static const struct spi_device_id *spi_nor_read_id(struct spi_nor *nor) |
589 | { | 590 | { |
@@ -1081,6 +1082,7 @@ int spi_nor_scan(struct spi_nor *nor, const struct spi_device_id *id, | |||
1081 | mtd->eraseregions[i].numblocks); | 1082 | mtd->eraseregions[i].numblocks); |
1082 | return 0; | 1083 | return 0; |
1083 | } | 1084 | } |
1085 | EXPORT_SYMBOL_GPL(spi_nor_scan); | ||
1084 | 1086 | ||
1085 | const struct spi_device_id *spi_nor_match_id(char *name) | 1087 | const struct spi_device_id *spi_nor_match_id(char *name) |
1086 | { | 1088 | { |
@@ -1093,6 +1095,7 @@ const struct spi_device_id *spi_nor_match_id(char *name) | |||
1093 | } | 1095 | } |
1094 | return NULL; | 1096 | return NULL; |
1095 | } | 1097 | } |
1098 | EXPORT_SYMBOL_GPL(spi_nor_match_id); | ||
1096 | 1099 | ||
1097 | MODULE_LICENSE("GPL"); | 1100 | MODULE_LICENSE("GPL"); |
1098 | MODULE_AUTHOR("Huang Shijie <shijie8@gmail.com>"); | 1101 | MODULE_AUTHOR("Huang Shijie <shijie8@gmail.com>"); |