aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/cmdlinepart.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/cmdlinepart.c')
-rw-r--r--drivers/mtd/cmdlinepart.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mtd/cmdlinepart.c b/drivers/mtd/cmdlinepart.c
index 2e08fc45ce84..721caebbc5cc 100644
--- a/drivers/mtd/cmdlinepart.c
+++ b/drivers/mtd/cmdlinepart.c
@@ -398,7 +398,13 @@ static int __init cmdline_parser_init(void)
398 return register_mtd_parser(&cmdline_parser); 398 return register_mtd_parser(&cmdline_parser);
399} 399}
400 400
401static void __exit cmdline_parser_exit(void)
402{
403 deregister_mtd_parser(&cmdline_parser);
404}
405
401module_init(cmdline_parser_init); 406module_init(cmdline_parser_init);
407module_exit(cmdline_parser_exit);
402 408
403MODULE_PARM_DESC(mtdparts, "Partitioning specification"); 409MODULE_PARM_DESC(mtdparts, "Partitioning specification");
404module_param(mtdparts, charp, 0); 410module_param(mtdparts, charp, 0);