Commit cf3b2b1e authored by Axel Lin's avatar Axel Lin Committed by Brian Norris

mtd: make deregister_mtd_parser return void

deregister_mtd_parser never fails; hence make it return void.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 2072552c
...@@ -682,12 +682,11 @@ int register_mtd_parser(struct mtd_part_parser *p) ...@@ -682,12 +682,11 @@ int register_mtd_parser(struct mtd_part_parser *p)
} }
EXPORT_SYMBOL_GPL(register_mtd_parser); 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); spin_lock(&part_parser_lock);
list_del(&p->list); list_del(&p->list);
spin_unlock(&part_parser_lock); spin_unlock(&part_parser_lock);
return 0;
} }
EXPORT_SYMBOL_GPL(deregister_mtd_parser); EXPORT_SYMBOL_GPL(deregister_mtd_parser);
......
...@@ -77,7 +77,7 @@ struct mtd_part_parser { ...@@ -77,7 +77,7 @@ struct mtd_part_parser {
}; };
extern int register_mtd_parser(struct mtd_part_parser *parser); extern int register_mtd_parser(struct mtd_part_parser *parser);
extern int deregister_mtd_parser(struct mtd_part_parser *parser); extern void deregister_mtd_parser(struct mtd_part_parser *parser);
int mtd_is_partition(const struct mtd_info *mtd); int mtd_is_partition(const struct mtd_info *mtd);
int mtd_add_partition(struct mtd_info *master, const char *name, int mtd_add_partition(struct mtd_info *master, const char *name,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment