summaryrefslogtreecommitdiff
path: root/drivers/mtd/maps/Makefile
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-04-26 02:01:40 +0300
committerArnd Bergmann <arnd@arndb.de>2016-04-26 02:13:55 +0300
commitc5f9d6b1379a4584b47dd80271ab3a6883f979a9 (patch)
tree5f16295cf91146e8c3d3d571d55fec91685f86eb /drivers/mtd/maps/Makefile
parent8d3fd357a28e420b1e154daf1cabdaa103911c08 (diff)
downloadlinux-c5f9d6b1379a4584b47dd80271ab3a6883f979a9.tar.xz
physmap_of: ensure versatile code is reachable
With the newly added physmap_of_versatile code, we get a build error when physmap_of is in a module, because of_flash_probe_versatile is not exported: ERROR: "of_flash_probe_versatile" [drivers/mtd/maps/physmap_of.ko] undefined! This adds the export, and changes the Makefile so that the code is also put into a loadable module rather than built-in when physmap_of itself is a module. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/mtd/maps/Makefile')
-rw-r--r--drivers/mtd/maps/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mtd/maps/Makefile b/drivers/mtd/maps/Makefile
index 188873a72f1d..644f7d36d35d 100644
--- a/drivers/mtd/maps/Makefile
+++ b/drivers/mtd/maps/Makefile
@@ -18,7 +18,9 @@ obj-$(CONFIG_MTD_TSUNAMI) += tsunami_flash.o
obj-$(CONFIG_MTD_PXA2XX) += pxa2xx-flash.o
obj-$(CONFIG_MTD_PHYSMAP) += physmap.o
obj-$(CONFIG_MTD_PHYSMAP_OF) += physmap_of.o
-obj-$(CONFIG_MTD_PHYSMAP_OF_VERSATILE) += physmap_of_versatile.o
+ifdef CONFIG_MTD_PHYSMAP_OF_VERSATILE
+obj-$(CONFIG_MTD_PHYSMAP_OF) += physmap_of_versatile.o
+endif
obj-$(CONFIG_MTD_PISMO) += pismo.o
obj-$(CONFIG_MTD_PMC_MSP_EVM) += pmcmsp-flash.o
obj-$(CONFIG_MTD_PCMCIA) += pcmciamtd.o