Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: maps: Prepare merging of physmap and physmap_of

We want to merge the physmap and physmap_of driver, but before we can
do that we must prepare things to create physmap.o out of several .c
files. Rename physmap.c into physmap-core.c and add a new Makefile
rule to create physmap.o (right now it only contains physmap-core.o).

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>

+2
+2
drivers/mtd/maps/Makefile
··· 17 17 obj-$(CONFIG_MTD_CK804XROM) += ck804xrom.o 18 18 obj-$(CONFIG_MTD_TSUNAMI) += tsunami_flash.o 19 19 obj-$(CONFIG_MTD_PXA2XX) += pxa2xx-flash.o 20 + physmap-objs-y += physmap-core.o 21 + physmap-objs := $(physmap-objs-y) 20 22 obj-$(CONFIG_MTD_PHYSMAP) += physmap.o 21 23 physmap_of-objs-y += physmap_of_core.o 22 24 physmap_of-objs-$(CONFIG_MTD_PHYSMAP_OF_VERSATILE) += physmap_of_versatile.o
drivers/mtd/maps/physmap.c drivers/mtd/maps/physmap-core.c