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/cmdlinepart.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/cmdlinepart.c')
-rw-r--r-- | drivers/mtd/cmdlinepart.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); |