Skip to content

Commit

Permalink
Remove prototypes of nand_init() in favor of including nand.h.
Browse files Browse the repository at this point in the history
Likewise with onenand_init().

Signed-off-by: Scott Wood <[email protected]>
  • Loading branch information
Scott Wood committed May 28, 2008
1 parent 229c56f commit d6ac2ed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
10 changes: 2 additions & 8 deletions lib_arm/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -55,14 +57,6 @@

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
Expand Down
4 changes: 1 addition & 3 deletions lib_ppc/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion lib_sh/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -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: ");
Expand Down

0 comments on commit d6ac2ed

Please sign in to comment.