diff options
author | Wolfgang Denk <wd@denx.de> | 2007-08-16 11:42:47 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2007-08-16 11:42:47 +0200 |
commit | 4a3c7eb917de9cfd611cdd778c58253869587ad5 (patch) | |
tree | 8512d7ea2cdcbad35b9cbd4a090a533fe5108c2e /board/esd/common/auto_update.c | |
parent | 2d78074d2e806edc380c1464eb9e5df335ece65e (diff) | |
parent | a44e7a97c8cbbac3cbc32376dcaad0ec1f76f604 (diff) |
Merge with /home/wd/git/u-boot/custodian/u-boot-nand-flash
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 62f6c20434..da147ee550 100644 --- a/board/esd/common/auto_update.c +++ b/board/esd/common/auto_update.c @@ -31,7 +31,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> @@ -294,6 +296,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) { |