diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2013-01-16 05:12:50 +0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2013-02-04 11:27:33 +0400 |
commit | 422f3890a68333cfd39f2133cf7255ed067e92e6 (patch) | |
tree | 960e669c91bc741449eba3857ef039c0a5e71223 /drivers/mtd/ofpart.c | |
parent | f5f172dc031ace288c5bb5d18f0b956db08241c2 (diff) | |
download | linux-422f3890a68333cfd39f2133cf7255ed067e92e6.tar.xz |
mtd: Allow removal of partitioning modules
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
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: 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"); |