diff options
Diffstat (limited to 'drivers/mtd/ofpart.c')
-rw-r--r-- | drivers/mtd/ofpart.c | 7 |
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 | ||
177 | static void __exit ofpart_parser_exit(void) | ||
178 | { | ||
179 | deregister_mtd_parser(&ofpart_parser); | ||
180 | deregister_mtd_parser(&ofoldpart_parser); | ||
181 | } | ||
182 | |||
177 | module_init(ofpart_parser_init); | 183 | module_init(ofpart_parser_init); |
184 | module_exit(ofpart_parser_exit); | ||
178 | 185 | ||
179 | MODULE_LICENSE("GPL"); | 186 | MODULE_LICENSE("GPL"); |
180 | MODULE_DESCRIPTION("Parser for MTD partitioning information in device tree"); | 187 | MODULE_DESCRIPTION("Parser for MTD partitioning information in device tree"); |