* [PATCH v2] mtd: provide an alias for the redboot module name
@ 2011-10-14 14:33 Andres Salomon
2011-10-16 12:03 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Andres Salomon @ 2011-10-14 14:33 UTC (permalink / raw)
To: David Woodhouse; +Cc: Artem Bityutskiy, linux-mtd, linux-kernel
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>
Cc: stable@kernel.org
---
drivers/mtd/redboot.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
v2: instead of renaming the module, use a module_alias. Duh. Thanks,
Artem Bityutskiy!
diff --git a/drivers/mtd/redboot.c b/drivers/mtd/redboot.c
index 7a87d07..4938bd0 100644
--- a/drivers/mtd/redboot.c
+++ b/drivers/mtd/redboot.c
@@ -297,6 +297,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);
--
1.7.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] mtd: provide an alias for the redboot module name
2011-10-14 14:33 [PATCH v2] mtd: provide an alias for the redboot module name Andres Salomon
@ 2011-10-16 12:03 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2011-10-16 12:03 UTC (permalink / raw)
To: Andres Salomon; +Cc: David Woodhouse, linux-mtd, linux-kernel
On Fri, 2011-10-14 at 07:33 -0700, Andres Salomon wrote:
> 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>
> Cc: stable@kernel.org
> ---
> drivers/mtd/redboot.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> v2: instead of renaming the module, use a module_alias. Duh. Thanks,
> Artem Bityutskiy!
Pushed to l2-mtd-2.6.git, thanks!
--
Best Regards,
Artem Bityutskiy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-16 12:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-14 14:33 [PATCH v2] mtd: provide an alias for the redboot module name Andres Salomon
2011-10-16 12:03 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox