summaryrefslogtreecommitdiff
path: root/drivers/mtd/mtdpart.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-12-01 18:59:15 +0800
committerBrian Norris <computersforpeace@gmail.com>2014-01-03 11:22:22 -0800
commitcf3b2b1e24998ba67ca6defa71899bee2432046f (patch)
treef111948c2c628cac23407e603939ed57cbdd43eb /drivers/mtd/mtdpart.c
parent2072552c33c82e7f0c7adfac7965ecf40b739f1a (diff)
mtd: make deregister_mtd_parser return void
deregister_mtd_parser never fails; hence make it return void. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/mtdpart.c')
-rw-r--r--drivers/mtd/mtdpart.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c
index 67a89bb45943..29ee91e6a70f 100644
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
@@ -682,12 +682,11 @@ int register_mtd_parser(struct mtd_part_parser *p)
}
EXPORT_SYMBOL_GPL(register_mtd_parser);
-int deregister_mtd_parser(struct mtd_part_parser *p)
+void deregister_mtd_parser(struct mtd_part_parser *p)
{
spin_lock(&part_parser_lock);
list_del(&p->list);
spin_unlock(&part_parser_lock);
- return 0;
}
EXPORT_SYMBOL_GPL(deregister_mtd_parser);