]> git.sur5r.net Git - u-boot/commitdiff
Remove prototypes of nand_init() in favor of including nand.h.
authorScott Wood <scottwood@freescale.com>
Thu, 22 May 2008 15:49:46 +0000 (10:49 -0500)
committerScott Wood <scottwood@freescale.com>
Wed, 28 May 2008 16:06:29 +0000 (11:06 -0500)
Likewise with onenand_init().

Signed-off-by: Scott Wood <scottwood@freescale.com>
lib_arm/board.c
lib_ppc/board.c
lib_sh/board.c

index 67506b35e1ec6fbac0d00ee000341dc97c345414..5e0455391170942d8fd937b581787560e3fdbcb8 100644 (file)
@@ -45,6 +45,8 @@
 #include <version.h>
 #include <net.h>
 #include <serial.h>
+#include <nand.h>
+#include <onenand_uboot.h>
 
 #ifdef CONFIG_DRIVER_SMC91111
 #include "../drivers/net/smc91111.h"
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#if defined(CONFIG_CMD_NAND)
-void nand_init (void);
-#endif
-
-#if defined(CONFIG_CMD_ONENAND)
-void onenand_init(void);
-#endif
-
 ulong monitor_flash_len;
 
 #ifdef CONFIG_HAS_DATAFLASH
index 4956403cce8d1439dbd5f41fd10fede6021a107a..6f7242d622ca4d208cc8167811ac97fffea9e1e9 100644 (file)
@@ -93,9 +93,7 @@ void doc_init (void);
 #if defined(CONFIG_HARD_SPI)
 #include <spi.h>
 #endif
-#if defined(CONFIG_CMD_NAND)
-void nand_init (void);
-#endif
+#include <nand.h>
 
 static char *failed = "*** failed ***\n";
 
index 883c381e641ba47d3c7b8c5c42dabdc786aeb689..807415c548fe27672c7835b96a3ae7fba16ef881 100644 (file)
@@ -76,7 +76,7 @@ static int sh_flash_init(void)
 }
 
 #if defined(CONFIG_CMD_NAND)
-void nand_init (void);
+#include <nand.h>
 static int sh_nand_init(void)
 {
        printf("NAND: ");