mtd: ofpart: add ofoldpart alias
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Nov 7 11:59:24 EST 2011
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=9786f6e68af00d0988ad7f51fe3fd118be1c30ad
Commit: 9786f6e68af00d0988ad7f51fe3fd118be1c30ad
Parent: 041e4575f03400e045f00a823fcbbbb337de8409
Author: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
AuthorDate: Mon Jun 27 16:34:46 2011 +0400
Committer: Artem Bityutskiy <artem.bityutskiy at intel.com>
CommitDate: Sun Sep 11 15:02:14 2011 +0300
mtd: ofpart: add ofoldpart alias
ofpart.ko also provides ofoldpart MTD parser. Add respective
MODULE_ALIAS("ofoldpart"); declaration.
Artem: improve the comment
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
Signed-off-by: Artem Bityutskiy <dedekind1 at gmail.com>
---
drivers/mtd/ofpart.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/ofpart.c b/drivers/mtd/ofpart.c
index aa33b8a..64be8f0 100644
--- a/drivers/mtd/ofpart.c
+++ b/drivers/mtd/ofpart.c
@@ -176,3 +176,9 @@ module_init(ofpart_parser_init);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Parser for MTD partitioning information in device tree");
MODULE_AUTHOR("Vitaly Wool, David Gibson");
+/*
+ * When MTD core cannot find the requested parser, it tries to load the module
+ * with the same name. Since we provide the ofoldpart parser, we should have
+ * the corresponding alias.
+ */
+MODULE_ALIAS("ofoldpart");
More information about the linux-mtd-cvs
mailing list