Skip to content

Commit

Permalink
mtd: provide an alias for the redboot module name
Browse files Browse the repository at this point in the history
parse_mtd_partitions takes a list of partition types; if the driver
isn't loaded, it attempts to load it, and then it grabs the partition
parser.  For redboot, the module name is "redboot.ko", while the parser
name is "RedBoot".  Since modprobe is case-sensitive, attempting to
modprobe "RedBoot" will never work.  I suspect the embedded systems that
make use of redboot just always manually loaded redboot prior to loading
their specific nand chip drivers (or statically compiled it in).

Signed-off-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Cc: stable@kernel.org
  • Loading branch information
Andres Salomon authored and Artem Bityutskiy committed Oct 16, 2011
1 parent 5f94913 commit d5de190
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/mtd/redboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ static struct mtd_part_parser redboot_parser = {
.name = "RedBoot",
};

/* mtd parsers will request the module by parser name */
MODULE_ALIAS("RedBoot");

static int __init redboot_parser_init(void)
{
return register_mtd_parser(&redboot_parser);
Expand Down

0 comments on commit d5de190

Please sign in to comment.