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

mtd: make ofpart buildable as a separate module

As ofpart now uses a standard mtd partitions parser interface, make it
buildable as a separate module. Also provide MODULE_DESCRIPTION and
MODULE_AUTHOR for this module.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>

authored by

Dmitry Eremin-Solenikov and committed by
Artem Bityutskiy
d6137bad 7854d3f7

+5 -2
+2 -1
drivers/mtd/Kconfig
··· 137 137 'physmap' map driver (CONFIG_MTD_PHYSMAP) does this, for example. 138 138 139 139 config MTD_OF_PARTS 140 - def_bool y 140 + tristate "OpenFirmware partitioning information support" 141 + default Y 141 142 depends on OF 142 143 help 143 144 This provides a partition parsing function which derives
+1 -1
drivers/mtd/Makefile
··· 5 5 # Core functionality. 6 6 obj-$(CONFIG_MTD) += mtd.o 7 7 mtd-y := mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o 8 - mtd-$(CONFIG_MTD_OF_PARTS) += ofpart.o 9 8 9 + obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o 10 10 obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o 11 11 obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o 12 12 obj-$(CONFIG_MTD_AFS_PARTS) += afs.o
+2
drivers/mtd/ofpart.c
··· 174 174 module_init(ofpart_parser_init); 175 175 176 176 MODULE_LICENSE("GPL"); 177 + MODULE_DESCRIPTION("Parser for MTD partitioning information in device tree"); 178 + MODULE_AUTHOR("Vitaly Wool, David Gibson");