mtd: Blackfin NFC: fix badblock location with BootROM OOB
authorMike Frysinger <vapier@gentoo.org>
Sat, 16 Oct 2010 22:26:59 +0000 (18:26 -0400)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 25 Oct 2010 00:15:22 +0000 (01:15 +0100)
commit5954c47c2194abcdeeae5f752e64b7c75770dbd3
treef279af3e54bf8e55783bd3517e396ff622eb9007
parentd031c22643ce5f0f92eb06735498f63b7bc3e447
mtd: Blackfin NFC: fix badblock location with BootROM OOB

The bbt structure isn't actually used, just the badblockpos.  This lets
the driver correctly handle badblocks with the different OOB layout with
certain sized flashes.  Previously, the blocks would all be reported as
bad and be completely unusable.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/bf5xx_nand.c