diff options
author | Stefan Roese <sr@denx.de> | 2007-08-16 19:50:53 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2007-08-16 19:50:53 +0200 |
commit | fc9970137c8f187b5938e4926224e0f3d46c3476 (patch) | |
tree | 8d7a004483b1ec71ab7779cab468dece8382d13b /board/esd/common/auto_update.c | |
parent | 07bc20560cb9d3d186cca268c05c82762e8c55ad (diff) | |
parent | d35b508a55508535b6e8445b718585d27df733d3 (diff) | |
download | u-boot-imx-fc9970137c8f187b5938e4926224e0f3d46c3476.zip u-boot-imx-fc9970137c8f187b5938e4926224e0f3d46c3476.tar.gz u-boot-imx-fc9970137c8f187b5938e4926224e0f3d46c3476.tar.bz2 |
Merge with git://www.denx.de/git/u-boot.git
Diffstat (limited to 'board/esd/common/auto_update.c')
-rw-r--r-- | board/esd/common/auto_update.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/esd/common/auto_update.c b/board/esd/common/auto_update.c index c4a0957..a76b00f 100644 --- a/board/esd/common/auto_update.c +++ b/board/esd/common/auto_update.c @@ -27,7 +27,9 @@ #include <command.h> #include <image.h> #include <asm/byteorder.h> +#if defined(CFG_NAND_LEGACY) #include <linux/mtd/nand_legacy.h> +#endif #include <fat.h> #include <part.h> @@ -290,6 +292,8 @@ int au_do_update(int i, long sz) rc = nand_legacy_rw(nand_dev_desc, NANDRW_WRITE | NANDRW_JFFS2, start, nbytes, (size_t *)&total, (uchar *)addr); debug ("nand_legacy_rw: ret=%x total=%d nbytes=%d\n", rc, total, nbytes); +#else + rc = -1; #endif } if (rc != 0) { |