@@ -6,13 +6,7 @@
obj-$(CONFIG_MTD) += mtd.o
mtd-y := mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o mtdchar.o
-obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o
-obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o
-obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o
-obj-$(CONFIG_MTD_AFS_PARTS) += afs.o
-obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o
-obj-$(CONFIG_MTD_BCM63XX_PARTS) += bcm63xxpart.o
-obj-$(CONFIG_MTD_BCM47XX_PARTS) += bcm47xxpart.o
+obj-y += partitions/
# 'Users' - code which presents functionality to userspace.
obj-$(CONFIG_MTD_BLKDEVS) += mtd_blkdevs.o
new file mode 100644
@@ -0,0 +1,7 @@
+obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o
+obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o
+obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o
+obj-$(CONFIG_MTD_AFS_PARTS) += afs.o
+obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o
+obj-$(CONFIG_MTD_BCM63XX_PARTS) += bcm63xxpart.o
+obj-$(CONFIG_MTD_BCM47XX_PARTS) += bcm47xxpart.o
similarity index 100%
rename from drivers/mtd/afs.c
rename to drivers/mtd/partitions/afs.c
similarity index 100%
rename from drivers/mtd/ar7part.c
rename to drivers/mtd/partitions/ar7part.c
similarity index 100%
rename from drivers/mtd/bcm47xxpart.c
rename to drivers/mtd/partitions/bcm47xxpart.c
similarity index 100%
rename from drivers/mtd/bcm63xxpart.c
rename to drivers/mtd/partitions/bcm63xxpart.c
similarity index 100%
rename from drivers/mtd/cmdlinepart.c
rename to drivers/mtd/partitions/cmdlinepart.c
similarity index 100%
rename from drivers/mtd/ofpart.c
rename to drivers/mtd/partitions/ofpart.c
similarity index 100%
rename from drivers/mtd/redboot.c
rename to drivers/mtd/partitions/redboot.c
For better organization. Signed-off-by: Brian Norris <computersforpeace@gmail.com> --- drivers/mtd/Makefile | 8 +------- drivers/mtd/partitions/Makefile | 7 +++++++ drivers/mtd/{ => partitions}/afs.c | 0 drivers/mtd/{ => partitions}/ar7part.c | 0 drivers/mtd/{ => partitions}/bcm47xxpart.c | 0 drivers/mtd/{ => partitions}/bcm63xxpart.c | 0 drivers/mtd/{ => partitions}/cmdlinepart.c | 0 drivers/mtd/{ => partitions}/ofpart.c | 0 drivers/mtd/{ => partitions}/redboot.c | 0 9 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 drivers/mtd/partitions/Makefile rename drivers/mtd/{ => partitions}/afs.c (100%) rename drivers/mtd/{ => partitions}/ar7part.c (100%) rename drivers/mtd/{ => partitions}/bcm47xxpart.c (100%) rename drivers/mtd/{ => partitions}/bcm63xxpart.c (100%) rename drivers/mtd/{ => partitions}/cmdlinepart.c (100%) rename drivers/mtd/{ => partitions}/ofpart.c (100%) rename drivers/mtd/{ => partitions}/redboot.c (100%)