aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ofpart.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/ofpart.c')
-rw-r--r--drivers/mtd/ofpart.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mtd/ofpart.c b/drivers/mtd/ofpart.c
index dbd3aa574eaf..30bd907a260a 100644
--- a/drivers/mtd/ofpart.c
+++ b/drivers/mtd/ofpart.c
@@ -174,7 +174,14 @@ out:
174 return rc; 174 return rc;
175} 175}
176 176
177static void __exit ofpart_parser_exit(void)
178{
179 deregister_mtd_parser(&ofpart_parser);
180 deregister_mtd_parser(&ofoldpart_parser);
181}
182
177module_init(ofpart_parser_init); 183module_init(ofpart_parser_init);
184module_exit(ofpart_parser_exit);
178 185
179MODULE_LICENSE("GPL"); 186MODULE_LICENSE("GPL");
180MODULE_DESCRIPTION("Parser for MTD partitioning information in device tree"); 187MODULE_DESCRIPTION("Parser for MTD partitioning information in device tree");