diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2013-01-15 20:12:50 -0500 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2013-02-04 02:27:33 -0500 |
commit | 422f3890a68333cfd39f2133cf7255ed067e92e6 (patch) | |
tree | 960e669c91bc741449eba3857ef039c0a5e71223 /drivers/mtd/ar7part.c | |
parent | f5f172dc031ace288c5bb5d18f0b956db08241c2 (diff) |
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/ar7part.c')
-rw-r--r-- | drivers/mtd/ar7part.c | 6 |
1 files changed, 6 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>, " |