physmap_of: ensure versatile code is reachable
authorArnd Bergmann <arnd@arndb.de>
Mon, 25 Apr 2016 23:01:40 +0000 (01:01 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 25 Apr 2016 23:13:55 +0000 (01:13 +0200)
commitc5f9d6b1379a4584b47dd80271ab3a6883f979a9
tree5f16295cf91146e8c3d3d571d55fec91685f86eb
parent8d3fd357a28e420b1e154daf1cabdaa103911c08
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>
drivers/mtd/maps/Makefile
drivers/mtd/maps/physmap_of_versatile.c