mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
Cleanup nand_info[] declaration.
The nand_info array is declared as extern in several .c files. Those days, nand.h contains a reference to the array, so there is no need to declare it elsewhere. Signed-off-by: Stelian Pop <stelian@popies.net> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
parent
67e3beb52c
commit
54694a9142
4 changed files with 0 additions and 9 deletions
|
@ -37,8 +37,6 @@ int find_dev_and_part(const char *id, struct mtd_device **dev,
|
||||||
u8 *part_num, struct part_info **part);
|
u8 *part_num, struct part_info **part);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern nand_info_t nand_info[]; /* info for NAND chips */
|
|
||||||
|
|
||||||
static int nand_dump_oob(nand_info_t *nand, ulong off)
|
static int nand_dump_oob(nand_info_t *nand, ulong off)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -57,9 +57,6 @@ int nand_legacy_rw (struct nand_chip* nand, int cmd,
|
||||||
size_t start, size_t len,
|
size_t start, size_t len,
|
||||||
size_t * retlen, u_char * buf);
|
size_t * retlen, u_char * buf);
|
||||||
|
|
||||||
/* info for NAND chips, defined in drivers/mtd/nand/nand.c */
|
|
||||||
extern nand_info_t nand_info[];
|
|
||||||
|
|
||||||
/* references to names in env_common.c */
|
/* references to names in env_common.c */
|
||||||
extern uchar default_environment[];
|
extern uchar default_environment[];
|
||||||
extern int default_environment_size;
|
extern int default_environment_size;
|
||||||
|
|
|
@ -53,7 +53,6 @@
|
||||||
#if defined(CONFIG_ATMEL_LCD)
|
#if defined(CONFIG_ATMEL_LCD)
|
||||||
#include <atmel_lcdc.h>
|
#include <atmel_lcdc.h>
|
||||||
#include <nand.h>
|
#include <nand.h>
|
||||||
extern nand_info_t nand_info[];
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LCD
|
#ifdef CONFIG_LCD
|
||||||
|
|
|
@ -164,9 +164,6 @@ static struct part_info *current_part;
|
||||||
/* this one defined in nand_legacy.c */
|
/* this one defined in nand_legacy.c */
|
||||||
int read_jffs2_nand(size_t start, size_t len,
|
int read_jffs2_nand(size_t start, size_t len,
|
||||||
size_t * retlen, u_char * buf, int nanddev);
|
size_t * retlen, u_char * buf, int nanddev);
|
||||||
#else
|
|
||||||
/* info for NAND chips, defined in drivers/mtd/nand/nand.c */
|
|
||||||
extern nand_info_t nand_info[];
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define NAND_PAGE_SIZE 512
|
#define NAND_PAGE_SIZE 512
|
||||||
|
|
Loading…
Add table
Reference in a new issue