mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] mtd: delete partition erase size initialisation
@ 2014-07-02 15:55 Renaud Barbier
  2014-07-03  7:00 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Renaud Barbier @ 2014-07-02 15:55 UTC (permalink / raw)
  To: barebox

Delete the partition erase size initialisation to let the code
that follows determine the biggest partition erase size.
---
 drivers/mtd/partition.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/mtd/partition.c b/drivers/mtd/partition.c
index 5c0d46f..9b2b20e 100644
--- a/drivers/mtd/partition.c
+++ b/drivers/mtd/partition.c
@@ -108,7 +108,6 @@ struct mtd_info *mtd_add_partition(struct mtd_info *mtd, off_t offset,
 	part->type = mtd->type;
 	part->flags = mtd->flags;
 	part->parent = &mtd->class_dev;
-	part->erasesize = mtd->erasesize;
 	part->writesize = mtd->writesize;
 	part->writebufsize = mtd->writebufsize;
 	part->oobsize = mtd->oobsize;
-- 
1.8.3.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2014-07-03  7:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-02 15:55 [PATCH] mtd: delete partition erase size initialisation Renaud Barbier
2014-07-03  7:00 ` Sascha Hauer

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