|
@@ -1124,7 +1124,7 @@ static int gpmi_block_markbad(struct mtd_info *mtd, loff_t ofs)
|
|
chip->bbt[block >> 2] |= 0x01 << ((block & 0x03) << 1);
|
|
chip->bbt[block >> 2] |= 0x01 << ((block & 0x03) << 1);
|
|
|
|
|
|
/* Do we have a flash based bad block table ? */
|
|
/* Do we have a flash based bad block table ? */
|
|
- if (chip->options & NAND_BBT_USE_FLASH)
|
|
|
|
|
|
+ if (chip->bbt_options & NAND_BBT_USE_FLASH)
|
|
ret = nand_update_bbt(mtd, ofs);
|
|
ret = nand_update_bbt(mtd, ofs);
|
|
else {
|
|
else {
|
|
chipnr = (int)(ofs >> chip->chip_shift);
|
|
chipnr = (int)(ofs >> chip->chip_shift);
|