]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/mtd/nand/sm_common.c
Merge git://git.infradead.org/mtd-2.6
[mirror_ubuntu-bionic-kernel.git] / drivers / mtd / nand / sm_common.c
index 43469715b3fa1f9ef9c34017b13e0768aeef64e2..32ae5af7444f6a28d26e02a7ff6b53efc7e31bde 100644 (file)
@@ -48,7 +48,7 @@ static int sm_block_markbad(struct mtd_info *mtd, loff_t ofs)
 
        /* As long as this function is called on erase block boundaries
                it will work correctly for 256 byte nand */
-       ops.mode = MTD_OOB_PLACE;
+       ops.mode = MTD_OPS_PLACE_OOB;
        ops.ooboffs = 0;
        ops.ooblen = mtd->oobsize;
        ops.oobbuf = (void *)&oob;