public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mtd: Make deregister_mtd_parser return void
@ 2013-12-01 10:59 Axel Lin
  2013-12-01 11:01 ` [PATCH 2/2] mtd: Make register_mtd_parser " Axel Lin
  2013-12-09 20:00 ` [PATCH 1/2] mtd: Make deregister_mtd_parser " Brian Norris
  0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2013-12-01 10:59 UTC (permalink / raw)
  To: David Woodhouse, Brian Norris; +Cc: linux-mtd

deregister_mtd_parser never fails, hence make it return void.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/mtd/mtdpart.c          | 3 +--
 include/linux/mtd/partitions.h | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c
index 67a89bb..29ee91e 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 335ffca..d513ffb 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,
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-09 20:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-01 10:59 [PATCH 1/2] mtd: Make deregister_mtd_parser return void Axel Lin
2013-12-01 11:01 ` [PATCH 2/2] mtd: Make register_mtd_parser " Axel Lin
2013-12-09 20:00 ` [PATCH 1/2] mtd: Make deregister_mtd_parser " Brian Norris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox