[U-Boot] [PATCH 1/8] ColdFire: Fix board.c warning message

From: TsiChung Liew Tsi-Chung.Liew@freescale.com
Implicit declaration of nand_init() warning message
Signed-off-by: TsiChung Liew Tsi-Chung.Liew@freescale.com --- lib_m68k/board.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/lib_m68k/board.c b/lib_m68k/board.c index e59c6b0..9f4442e 100644 --- a/lib_m68k/board.c +++ b/lib_m68k/board.c @@ -63,6 +63,10 @@ #include <spi.h> #endif
+#ifdef CONFIG_CMD_NAND +#include <nand.h> +#endif + DECLARE_GLOBAL_DATA_PTR;
static char *failed = "*** failed ***\n";

On Thu, Aug 21, 2008 at 11:55:06PM +0000, Tsi-Chung Liew wrote:
From: TsiChung Liew Tsi-Chung.Liew@freescale.com
Implicit declaration of nand_init() warning message
Signed-off-by: TsiChung Liew Tsi-Chung.Liew@freescale.com
lib_m68k/board.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/lib_m68k/board.c b/lib_m68k/board.c index e59c6b0..9f4442e 100644 --- a/lib_m68k/board.c +++ b/lib_m68k/board.c @@ -63,6 +63,10 @@ #include <spi.h> #endif
+#ifdef CONFIG_CMD_NAND +#include <nand.h> +#endif
The ifdef should not be necessary.
-Scott
participants (2)
-
Scott Wood
-
Tsi-Chung Liew