Commit 422f3890 authored by Lubomir Rintel's avatar Lubomir Rintel Committed by Artem Bityutskiy

mtd: Allow removal of partitioning modules

Signed-off-by: default avatarLubomir Rintel <lkundrak@v3.sk>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
parent f5f172dc
...@@ -142,7 +142,13 @@ static int __init ar7_parser_init(void) ...@@ -142,7 +142,13 @@ static int __init ar7_parser_init(void)
return register_mtd_parser(&ar7_parser); return register_mtd_parser(&ar7_parser);
} }
static void __exit ar7_parser_exit(void)
{
deregister_mtd_parser(&ar7_parser);
}
module_init(ar7_parser_init); module_init(ar7_parser_init);
module_exit(ar7_parser_exit);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_AUTHOR( "Felix Fietkau <nbd@openwrt.org>, " MODULE_AUTHOR( "Felix Fietkau <nbd@openwrt.org>, "
......
...@@ -398,7 +398,13 @@ static int __init cmdline_parser_init(void) ...@@ -398,7 +398,13 @@ static int __init cmdline_parser_init(void)
return register_mtd_parser(&cmdline_parser); return register_mtd_parser(&cmdline_parser);
} }
static void __exit cmdline_parser_exit(void)
{
deregister_mtd_parser(&cmdline_parser);
}
module_init(cmdline_parser_init); module_init(cmdline_parser_init);
module_exit(cmdline_parser_exit);
MODULE_PARM_DESC(mtdparts, "Partitioning specification"); MODULE_PARM_DESC(mtdparts, "Partitioning specification");
module_param(mtdparts, charp, 0); module_param(mtdparts, charp, 0);
......
...@@ -174,7 +174,14 @@ static int __init ofpart_parser_init(void) ...@@ -174,7 +174,14 @@ static int __init ofpart_parser_init(void)
return rc; return rc;
} }
static void __exit ofpart_parser_exit(void)
{
deregister_mtd_parser(&ofpart_parser);
deregister_mtd_parser(&ofoldpart_parser);
}
module_init(ofpart_parser_init); module_init(ofpart_parser_init);
module_exit(ofpart_parser_exit);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Parser for MTD partitioning information in device tree"); MODULE_DESCRIPTION("Parser for MTD partitioning information in device tree");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment