From: Axel Lin Date: Sun, 1 Dec 2013 10:59:15 +0000 (+0800) Subject: mtd: make deregister_mtd_parser return void X-Git-Tag: next-20131210~51^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2bf327aa3f7b7a4f6b9743c667f847143bfec5cd;p=karo-tx-linux.git mtd: make deregister_mtd_parser return void deregister_mtd_parser never fails; hence make it return void. Signed-off-by: Axel Lin Signed-off-by: Brian Norris --- 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); diff --git a/include/linux/mtd/partitions.h b/include/linux/mtd/partitions.h index 335ffca10c10..d513ffbd8043 100644 --- a/include/linux/mtd/partitions.h +++ b/include/linux/mtd/partitions.h @@ -77,7 +77,7 @@ struct mtd_part_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_add_partition(struct mtd_info *master, const char *name,