diff options
author | Wolfgang Denk <wd@denx.de> | 2012-05-20 22:47:40 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2012-05-20 22:47:40 +0200 |
commit | 8fa3d2b8161bb73b759c9db5c811c885ca5ec60c (patch) | |
tree | f7aab3c7e50e90c22338450b2f417b3fff12b8a3 /drivers/mtd/nand/nand_util.c | |
parent | 8bd07c9aaf4628931ab8da6eb0f83e517d9381a7 (diff) | |
parent | e52fee9b04157c3f5bd73bb122e95d0c6ebb2270 (diff) | |
download | u-boot-imx-8fa3d2b8161bb73b759c9db5c811c885ca5ec60c.zip u-boot-imx-8fa3d2b8161bb73b759c9db5c811c885ca5ec60c.tar.gz u-boot-imx-8fa3d2b8161bb73b759c9db5c811c885ca5ec60c.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash
* 'master' of git://git.denx.de/u-boot-nand-flash:
NAND: Remove ONFI detection message to from bootup log
driver/mtd:IFC: Fix possible memory leak
driver/mtd: IFC NAND: Add support of ONFI NAND flash
mtd, nand: move some printfs to debug output.
nand_util: correct YAFFS image write function
powerpc/85xx: fix NAND boot linker scripts for -fpic
nand: extend .raw accesses to work on multiple pages
Diffstat (limited to 'drivers/mtd/nand/nand_util.c')
-rw-r--r-- | drivers/mtd/nand/nand_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_util.c b/drivers/mtd/nand/nand_util.c index 60c778e..7ed8b18 100644 --- a/drivers/mtd/nand/nand_util.c +++ b/drivers/mtd/nand/nand_util.c @@ -564,7 +564,7 @@ int nand_write_skip_bad(nand_info_t *nand, loff_t offset, size_t *length, ops.oobbuf = ops.datbuf + pagesize; rval = nand->write_oob(nand, offset, &ops); - if (!rval) + if (rval != 0) break; offset += pagesize; |