diff options
author | Anatolij Gustschin <agust@denx.de> | 2010-12-16 23:42:18 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2011-01-06 15:35:58 +0000 |
commit | 7fa33ac0a7e24a1b8bd71be5c47a17423c62fbda (patch) | |
tree | 664628f141206d86b6456f411b134930135a4d5d /drivers/mtd/mtdpart.c | |
parent | 25dcd29786d3fbd5751dc3c5b8109d930ea2d312 (diff) |
mtd: initialize writebufsize in the MTD object of a partition
Propagate the writebufsize to the partition's MTD object so
that UBI can set correct value for it's minimal I/O size
using the writebufsize field of MTD object of the partition.
By previous patches we added proper writebufsize field
initialization. Next patch can now change UBI to use
this field for setting the minimal I/O size.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/mtdpart.c')
-rw-r--r-- | drivers/mtd/mtdpart.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c index 1047ff0a4f55..b910a37baed8 100644 --- a/drivers/mtd/mtdpart.c +++ b/drivers/mtd/mtdpart.c @@ -384,6 +384,7 @@ static struct mtd_part *allocate_partition(struct mtd_info *master, slave->mtd.flags = master->flags & ~part->mask_flags; slave->mtd.size = part->size; slave->mtd.writesize = master->writesize; + slave->mtd.writebufsize = master->writebufsize; slave->mtd.oobsize = master->oobsize; slave->mtd.oobavail = master->oobavail; slave->mtd.subpage_sft = master->subpage_sft; |