mtd: initialize writebufsize in the MTD object of a partition
authorAnatolij Gustschin <agust@denx.de>
Thu, 16 Dec 2010 22:42:18 +0000 (23:42 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 6 Jan 2011 15:35:58 +0000 (15:35 +0000)
commit7fa33ac0a7e24a1b8bd71be5c47a17423c62fbda
tree664628f141206d86b6456f411b134930135a4d5d
parent25dcd29786d3fbd5751dc3c5b8109d930ea2d312
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>
drivers/mtd/mtdconcat.c
drivers/mtd/mtdpart.c