mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 20:18:54 -04:00
Remove prototypes of nand_init() in favor of including nand.h.
Likewise with onenand_init(). Signed-off-by: Scott Wood <scottwood@freescale.com>
This commit is contained in:
parent
229c56f07a
commit
d6ac2ed893
@ -45,6 +45,8 @@
|
|||||||
#include <version.h>
|
#include <version.h>
|
||||||
#include <net.h>
|
#include <net.h>
|
||||||
#include <serial.h>
|
#include <serial.h>
|
||||||
|
#include <nand.h>
|
||||||
|
#include <onenand_uboot.h>
|
||||||
|
|
||||||
#ifdef CONFIG_DRIVER_SMC91111
|
#ifdef CONFIG_DRIVER_SMC91111
|
||||||
#include "../drivers/net/smc91111.h"
|
#include "../drivers/net/smc91111.h"
|
||||||
@ -55,14 +57,6 @@
|
|||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
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;
|
ulong monitor_flash_len;
|
||||||
|
|
||||||
#ifdef CONFIG_HAS_DATAFLASH
|
#ifdef CONFIG_HAS_DATAFLASH
|
||||||
|
@ -93,9 +93,7 @@ void doc_init (void);
|
|||||||
#if defined(CONFIG_HARD_SPI)
|
#if defined(CONFIG_HARD_SPI)
|
||||||
#include <spi.h>
|
#include <spi.h>
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_CMD_NAND)
|
#include <nand.h>
|
||||||
void nand_init (void);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static char *failed = "*** failed ***\n";
|
static char *failed = "*** failed ***\n";
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ static int sh_flash_init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_CMD_NAND)
|
#if defined(CONFIG_CMD_NAND)
|
||||||
void nand_init (void);
|
#include <nand.h>
|
||||||
static int sh_nand_init(void)
|
static int sh_nand_init(void)
|
||||||
{
|
{
|
||||||
printf("NAND: ");
|
printf("NAND: ");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user