From: Stefan Roese <sr@denx.de>
Date: Mon, 25 Feb 2008 15:50:48 +0000 (+0100)
Subject: ppc4xx: Fix acadia_nand build problem
X-Git-Tag: v2025.01-rc5-pxa1908~22481^2
X-Git-Url: http://git.dujemihanovic.xyz/img/html/static/%7B%7B%20.Permalink%20%7D%7D?a=commitdiff_plain;h=64cd594e623c39f73964d18787763e4533f791f7;p=u-boot.git

ppc4xx: Fix acadia_nand build problem

Don't include testdram() on NAND-booting target acadia_nand. This saves
a few bytes and makes the target build clean again.

Signed-off-by: Stefan Roese <sr@denx.de>
---

diff --git a/board/amcc/acadia/memory.c b/board/amcc/acadia/memory.c
index 9346d2c52f..709d41e41a 100644
--- a/board/amcc/acadia/memory.c
+++ b/board/amcc/acadia/memory.c
@@ -117,7 +117,9 @@ long int initdram(int board_type)
 	return (CFG_MBYTES_RAM << 20);
 }
 
+#ifndef CONFIG_NAND_SPL
 int testdram(void)
 {
 	return (0);
 }
+#endif