mtd: adapt writebufsize calculation for concat
authorHolger Brunck <holger.brunck@keymile.com>
Mon, 24 Jan 2011 16:45:42 +0000 (17:45 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 11 Mar 2011 14:22:42 +0000 (14:22 +0000)
commit771df61949cf2d6ae9ff07e209c80693cdbc9302
tree58ce33325000bc7c17832c86a2763aabed665b10
parentcbc6c5e73dfa598b1fa5e67cef28096186e2a7cd
mtd: adapt writebufsize calculation for concat

If different chips with different writebufsize are concatenated,
the writebufsize from the concat device has to be taken from
the device with the largest writebuffer. This writebufsize
is used later on in the UBI layer for the min I/O size.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdconcat.c