From 422f3890a68333cfd39f2133cf7255ed067e92e6 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 16 Jan 2013 02:12:50 +0100 Subject: mtd: Allow removal of partitioning modules Signed-off-by: Lubomir Rintel Signed-off-by: Artem Bityutskiy --- drivers/mtd/ofpart.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'drivers/mtd/ofpart.c') diff --git a/drivers/mtd/ofpart.c b/drivers/mtd/ofpart.c index dbd3aa574ea..30bd907a260 100644 --- a/drivers/mtd/ofpart.c +++ b/drivers/mtd/ofpart.c @@ -174,7 +174,14 @@ out: return rc; } +static void __exit ofpart_parser_exit(void) +{ + deregister_mtd_parser(&ofpart_parser); + deregister_mtd_parser(&ofoldpart_parser); +} + module_init(ofpart_parser_init); +module_exit(ofpart_parser_exit); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("Parser for MTD partitioning information in device tree"); -- cgit v1.2.3