Skip to content

Commit d6137ba

Browse files
lumagdedekind
authored andcommitted
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>
1 parent 7854d3f commit d6137ba

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎drivers/mtd/Kconfig‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ config MTD_AFS_PARTS
137137
'physmap' map driver (CONFIG_MTD_PHYSMAP) does this, for example.
138138

139139
config MTD_OF_PARTS
140-
def_bool y
140+
tristate "OpenFirmware partitioning information support"
141+
default Y
141142
depends on OF
142143
help
143144
This provides a partition parsing function which derives

‎drivers/mtd/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# Core functionality.
66
obj-$(CONFIG_MTD) += mtd.o
77
mtd-y := mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o
8-
mtd-$(CONFIG_MTD_OF_PARTS) += ofpart.o
98

9+
obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o
1010
obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o
1111
obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o
1212
obj-$(CONFIG_MTD_AFS_PARTS) += afs.o

‎drivers/mtd/ofpart.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,5 @@ static int __init ofpart_parser_init(void)
174174
module_init(ofpart_parser_init);
175175

176176
MODULE_LICENSE("GPL");
177+
MODULE_DESCRIPTION("Parser for MTD partitioning information in device tree");
178+
MODULE_AUTHOR("Vitaly Wool, David Gibson");

0 commit comments

Comments
 (0)