Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: Allow removal of partitioning modules

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>

authored by

Lubomir Rintel and committed by
Artem Bityutskiy
422f3890 f5f172dc

+19
+6
drivers/mtd/ar7part.c
··· 142 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 150 module_init(ar7_parser_init); 151 + module_exit(ar7_parser_exit); 146 152 147 153 MODULE_LICENSE("GPL"); 148 154 MODULE_AUTHOR( "Felix Fietkau <nbd@openwrt.org>, "
+6
drivers/mtd/cmdlinepart.c
··· 398 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 406 module_init(cmdline_parser_init); 407 + module_exit(cmdline_parser_exit); 402 408 403 409 MODULE_PARM_DESC(mtdparts, "Partitioning specification"); 404 410 module_param(mtdparts, charp, 0);
+7
drivers/mtd/ofpart.c
··· 174 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 183 module_init(ofpart_parser_init); 184 + module_exit(ofpart_parser_exit); 178 185 179 186 MODULE_LICENSE("GPL"); 180 187 MODULE_DESCRIPTION("Parser for MTD partitioning information in device tree");