diff options
Diffstat (limited to 'cmd/load.c')
-rw-r--r-- | cmd/load.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/load.c b/cmd/load.c index 77c3359b29..4597ec5618 100644 --- a/cmd/load.c +++ b/cmd/load.c @@ -151,7 +151,7 @@ static ulong load_serial(long offset) case SREC_DATA3: case SREC_DATA4: store_addr = addr + offset; -#ifndef CONFIG_SYS_NO_FLASH +#ifdef CONFIG_MTD_NOR_FLASH if (addr2info(store_addr)) { int rc; @@ -971,7 +971,7 @@ static ulong load_serial_ymodem(ulong offset, int mode) store_addr = addr + offset; size += res; addr += res; -#ifndef CONFIG_SYS_NO_FLASH +#ifdef CONFIG_MTD_NOR_FLASH if (addr2info(store_addr)) { int rc; |