commit | 9e2aeafd76333d6be9982d8e5282aecd9944ce86 | [log] [tgz] |
---|---|---|
author | Thomas Knobloch <knobloch@siemens.com> | Sat May 05 07:04:42 2007 +0200 |
committer | Stefan Roese <sr@denx.de> | Sat May 05 07:04:42 2007 +0200 |
tree | 705931458699b81600559d222dad5738cb0ce265 | |
parent | 995f1f1c3df84f4212a1f194bff357ca5e9ac647 [diff] |
NAND: Wrong calculation of page number in nand_block_bad() In case that there is no memory based bad block table available the function nand_block_checkbad() in drivers/mtd/nand/nand_base.c will call nand_block_bad() directly. When parameter 'getchip' is set to zero, nand_block_bad() will not right shift the offset to calculate the correct page number. Signed-off-by: Thomas Knobloch <knobloch@siemens.com> Signed-off-by: Stefan Roese <sr@denx.de>