summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/partition.c
diff options
context:
space:
mode:
authorRenaud Barbier <renaud.barbier@ge.com>2014-07-02 16:55:14 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-07-03 09:00:06 +0200
commitc8890e057a0a7a0ab9ffc1ce11264c3119cf706f (patch)
tree0f1fb192e22c8b2b950d8d23dd785a98165d9b0e /drivers/mtd/partition.c
parent621266d3a4e8c70b305d3194080d6402ca97e1ac (diff)
downloadbarebox-c8890e057a0a7a0ab9ffc1ce11264c3119cf706f.tar.gz
barebox-c8890e057a0a7a0ab9ffc1ce11264c3119cf706f.tar.xz
mtd: delete partition erase size initialisation
Delete the partition erase size initialisation to let the code that follows determine the biggest partition erase size. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mtd/partition.c')
-rw-r--r--drivers/mtd/partition.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/partition.c b/drivers/mtd/partition.c
index 5c0d46fdad..9b2b20ef5d 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;