mtd: gpmi-nand: utilize oob_requested parameter
authorBrian Norris <computersforpeace@gmail.com>
Wed, 2 May 2012 17:15:02 +0000 (10:15 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 14 May 2012 04:21:52 +0000 (23:21 -0500)
commit7725cc85932bd02dd12c23108e0ef748c551ccba
treebfa46669f69bb9c0f198ab65a8470de4d96decb5
parenta6976cdfe69756436ed8c22b7a03e47a7efe36fb
mtd: gpmi-nand: utilize oob_requested parameter

Don't read OOB if the caller didn't request it.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/gpmi-nand/gpmi-nand.c