diff options
-rw-r--r-- | drivers/mtd/ar7part.c | 6 | ||||
-rw-r--r-- | drivers/mtd/cmdlinepart.c | 6 | ||||
-rw-r--r-- | drivers/mtd/ofpart.c | 7 |
3 files changed, 19 insertions, 0 deletions
diff --git a/drivers/mtd/ar7part.c b/drivers/mtd/ar7part.c index 7c057a05adb6..ddc0a4287a4b 100644 --- a/drivers/mtd/ar7part.c +++ b/drivers/mtd/ar7part.c | |||
@@ -142,7 +142,13 @@ static int __init ar7_parser_init(void) | |||
142 | return register_mtd_parser(&ar7_parser); | 142 | return register_mtd_parser(&ar7_parser); |
143 | } | 143 | } |
144 | 144 | ||
145 | static void __exit ar7_parser_exit(void) | ||
146 | { | ||
147 | deregister_mtd_parser(&ar7_parser); | ||
148 | } | ||
149 | |||
145 | module_init(ar7_parser_init); | 150 | module_init(ar7_parser_init); |
151 | module_exit(ar7_parser_exit); | ||
146 | 152 | ||
147 | MODULE_LICENSE("GPL"); | 153 | MODULE_LICENSE("GPL"); |
148 | MODULE_AUTHOR( "Felix Fietkau <nbd@openwrt.org>, " | 154 | MODULE_AUTHOR( "Felix Fietkau <nbd@openwrt.org>, " |
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 | ||
401 | static void __exit cmdline_parser_exit(void) | ||
402 | { | ||
403 | deregister_mtd_parser(&cmdline_parser); | ||
404 | } | ||
405 | |||
401 | module_init(cmdline_parser_init); | 406 | module_init(cmdline_parser_init); |
407 | module_exit(cmdline_parser_exit); | ||
402 | 408 | ||
403 | MODULE_PARM_DESC(mtdparts, "Partitioning specification"); | 409 | MODULE_PARM_DESC(mtdparts, "Partitioning specification"); |
404 | module_param(mtdparts, charp, 0); | 410 | module_param(mtdparts, charp, 0); |
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"); |