pci: Do not skip legacy IDE device configuration
[oweals/u-boot.git] / common / image.c
index 0f5274f1be4739379551f8a1691afab4da684d11..f0f01351fe5b378dc8a98235d70a99e9bdd42ced 100644 (file)
@@ -462,7 +462,7 @@ phys_size_t getenv_bootm_size(void)
                tmp = 0;
 
 
-#if defined(CONFIG_ARM)
+#if defined(CONFIG_ARM) && defined(CONFIG_NR_DRAM_BANKS)
        return gd->bd->bi_dram[0].size - tmp;
 #else
        return gd->bd->bi_memsize - tmp;