mtd: nand: set correct length to FBCR for a non-full-page write
authorLiu Shuo <b35362@freescale.com>
Sun, 4 Dec 2011 04:31:37 +0000 (12:31 +0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 9 Jan 2012 18:13:18 +0000 (18:13 +0000)
commite32de766c2eb65f775438dd6d8ec5007619d2fe5
tree0c9aae00681f09ecd95b47268912295307613554
parenta9a552f0bf6258c3593e8887c7212f0fbec8b44c
mtd: nand: set correct length to FBCR for a non-full-page write

When we do a non-full-page write, the length be set to FBCR should
not be 'elbc_fcm_ctrl->index', it should be 'elbc_fcm_ctrl->index -
elbc_fcm_ctrl->column'.

Signed-off-by: Liu Shuo <b35362@freescale.com>
Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/fsl_elbc_nand.c