cmd_nand.c: Fix CONFIG_CMD_NAND_YAFFS
[platform/kernel/u-boot.git] / common / cmd_nand.c
index 110c78c..e9d3d3c 100644 (file)
@@ -673,7 +673,7 @@ static int do_nand(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                        }
                        ret = nand_write_skip_bad(nand, off, &rwsize, NULL,
                                                maxsize, (u_char *)addr,
-                                               WITH_INLINE_OOB);
+                                               WITH_YAFFS_OOB);
 #endif
                } else if (!strcmp(s, ".oob")) {
                        /* out-of-band data */