]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - common/cmd_nand.c
nand_util: convert nand_write_skip_bad() to flags
[karo-tx-uboot.git] / common / cmd_nand.c
index 44c4d1f89ce2b2e189d275ee297e7090835f5805..27a88796eec613aa6d70b2fd016f9f2c177a04c4 100644 (file)
@@ -581,7 +581,8 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
                                printf("Unknown nand command suffix '%s'.\n", s);
                                return 1;
                        }
-                       ret = nand_write_skip_bad(nand, off, &rwsize, (u_char *)addr, 1);
+                       ret = nand_write_skip_bad(nand, off, &rwsize,
+                                               (u_char *)addr, WITH_YAFFS_OOB);
 #endif
                } else if (!strcmp(s, ".oob")) {
                        /* out-of-band data */