From: Dmitry Eremin-Solenikov Date: Mon, 27 Jun 2011 12:34:46 +0000 (+0400) Subject: mtd: ofpart: add ofoldpart alias X-Git-Tag: v3.2-rc1~14^2~80 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9786f6e68af00d0988ad7f51fe3fd118be1c30ad;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Signed-off-by: Artem Bityutskiy --- 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");