mtd: physmap_of: fixup gemini/versatile dependencies
authorBrian Norris <computersforpeace@gmail.com>
Thu, 9 Feb 2017 02:09:37 +0000 (18:09 -0800)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 10 Feb 2017 17:53:41 +0000 (09:53 -0800)
commit4f04f68e1598087a8110e8946bfb321eebe115c9
treeebf1008a60d9e40b92058c51820b2c0143349ff6
parent42e9401bd1467d22c4dc4d2c637347b874e6a80b
mtd: physmap_of: fixup gemini/versatile dependencies

physmap_of sort of depends on the gemini and versatile modules (when
they're enabled), but this isn't expressed in Kconfig. Let's just merge
the modules all together, when enabled. Then we can avoid exporting a
few symbols, and the versatile and gemini code can now be modular again
(the below commit accidentally made them built-in only).

Resolves errors like this:

ERROR: "of_flash_probe_versatile" [drivers/mtd/maps/physmap_of.ko] undefined!
ERROR: "of_flash_probe_gemini" [drivers/mtd/maps/physmap_of.ko] undefined!

Fixes: 56ff337ea433 ("mtd: physmap_of: add a hook for Gemini flash probing")
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
drivers/mtd/maps/Makefile
drivers/mtd/maps/physmap_of_gemini.c
drivers/mtd/maps/physmap_of_versatile.c