]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: physmap_of: really fix the physmap add-ons
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 30 Mar 2017 15:36:39 +0000 (17:36 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 19 Apr 2017 18:46:00 +0000 (11:46 -0700)
commite1b0df394a456fe5770c62e291c2837cd134378d
tree72b128f550395480cadb102e7d19c6669d31548c
parent8e3cce8fc322d0cfef560c82c00b4dfb2599a177
mtd: physmap_of: really fix the physmap add-ons

The current way of building the of_physmap add-ons result in just
the add-on being in the object code, and not the actual core
implementation and regress the Gemini and Versatile.

Bake the physmap_of.o object by baking physmap_of_core.o and
adding the Versatile and/or Gemini add-ons to the final object.
Rename the source file physmap_of_core.c to get the desired
build components.

Suggested-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Fixes: b6c97b95d5eb ("mtd: physmap_of: fixup gemini/versatile dependencies")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/maps/Makefile
drivers/mtd/maps/physmap_of.c [deleted file]
drivers/mtd/maps/physmap_of_core.c [new file with mode: 0644]