]> git.sur5r.net Git - u-boot/blobdiff - drivers/mtd/nand/mpc5121_nfc.c
Merge branch 'master' of git://git.denx.de/u-boot-video
[u-boot] / drivers / mtd / nand / mpc5121_nfc.c
index 7fd8a354791c176e1dbaa0d31105e2b43f9d29e9..e53f341dcf81a2f809cc9532f8eb7b022f8474ea 100644 (file)
@@ -29,7 +29,7 @@
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/nand.h>
 #include <linux/mtd/nand_ecc.h>
-#include <linux/mtd/compat.h>
+#include <linux/compat.h>
 
 #include <asm/errno.h>
 #include <asm/io.h>
@@ -621,7 +621,7 @@ int board_nand_init(struct nand_chip *chip)
        chip->write_buf = mpc5121_nfc_write_buf;
        chip->verify_buf = mpc5121_nfc_verify_buf;
        chip->select_chip = mpc5121_nfc_select_chip;
-       chip->options = NAND_NO_AUTOINCR | NAND_USE_FLASH_BBT;
+       chip->bbt_options = NAND_BBT_USE_FLASH;
        chip->ecc.mode = NAND_ECC_SOFT;
 
        /* Reset NAND Flash controller */