mtd: sh_flctl: Only copy OOB data if it is required
authorBastian Hecht <hechtb@googlemail.com>
Thu, 5 Jul 2012 10:41:02 +0000 (12:41 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 29 Sep 2012 13:49:38 +0000 (14:49 +0100)
commit894824f9731a805b70b553220ae58e5475ff6ff1
tree58d80a54f596fe5ff2959ea1ad76d7536ce57c4c
parentd76236f30f1280f9345bb266a161e3ba60518c83
mtd: sh_flctl: Only copy OOB data if it is required

Check the new oob_required flag and only copy the OOB data to the internal
buffer if needed.

Signed-off-by: Bastian Hecht <hechtb@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/sh_flctl.c