1 --- a/drivers/mtd/nand/raw/nand_base.c
2 +++ b/drivers/mtd/nand/raw/nand_base.c
3 @@ -488,7 +488,7 @@ static int nand_do_write_oob(struct nand
5 nand_fill_oob(chip, ops->oobbuf, ops->ooblen, ops);
7 - if (ops->mode == MTD_OPS_RAW)
8 + if (ops->mode == MTD_OPS_AUTO_OOB || ops->mode == MTD_OPS_RAW)
9 status = chip->ecc.write_oob_raw(chip, page & chip->pagemask);
11 status = chip->ecc.write_oob(chip, page & chip->pagemask);