summaryrefslogtreecommitdiff
path: root/common/cmd_mem.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-04-08 00:16:36 +0200
committerWolfgang Denk <wd@denx.de>2008-04-08 00:16:36 +0200
commita1b215e2a2a013327693f2fb990957b746f26cf5 (patch)
treec998a43b8022f623ac86a0de246d05ed36a86e9e /common/cmd_mem.c
parentf9eabcb357ea294e3e01bfe26841bf51d6bd8f05 (diff)
parentb5873f1732b92a25690e1513b90dfb0d644f6697 (diff)
downloadu-boot-imx-a1b215e2a2a013327693f2fb990957b746f26cf5.zip
u-boot-imx-a1b215e2a2a013327693f2fb990957b746f26cf5.tar.gz
u-boot-imx-a1b215e2a2a013327693f2fb990957b746f26cf5.tar.bz2
Merge branch 'master' of git://www.denx.de/git/u-boot-at91
Diffstat (limited to 'common/cmd_mem.c')
-rw-r--r--common/cmd_mem.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/cmd_mem.c b/common/cmd_mem.c
index 4262e26..d6d7a5b 100644
--- a/common/cmd_mem.c
+++ b/common/cmd_mem.c
@@ -492,7 +492,11 @@ int do_mem_cp ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}
/* Check if we are copying from DataFlash to RAM */
- if (addr_dataflash(addr) && !addr_dataflash(dest) && (addr2info(dest)==NULL) ){
+ if (addr_dataflash(addr) && !addr_dataflash(dest)
+#ifndef CFG_NO_FLASH
+ && (addr2info(dest) == NULL)
+#endif
+ ){
int rc;
rc = read_dataflash(addr, count * size, (char *) dest);
if (rc != 1) {