diff options
author | Stelian Pop <stelian@popies.net> | 2008-05-13 15:31:24 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2008-05-28 16:06:25 (GMT) |
commit | 5922db6c0948506be91e0de44e7a6863a18a417f (patch) | |
tree | b2bb938dff0307fc1b9f84281b0ea98490b1623c | |
parent | 135f0a7488af2947adbe4b40b79280bdfe5e9886 (diff) | |
download | u-boot-5922db6c0948506be91e0de44e7a6863a18a417f.tar.xz |
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: Scott Wood <scottwood@freescale.com>
-rw-r--r-- | common/cmd_nand.c | 2 | ||||
-rw-r--r-- | common/env_nand.c | 3 | ||||
-rw-r--r-- | fs/jffs2/jffs2_1pass.c | 3 |
3 files changed, 0 insertions, 8 deletions
diff --git a/common/cmd_nand.c b/common/cmd_nand.c index 37eb41b..37198d2 100644 --- a/common/cmd_nand.c +++ b/common/cmd_nand.c @@ -37,8 +37,6 @@ int find_dev_and_part(const char *id, struct mtd_device **dev, u8 *part_num, struct part_info **part); #endif -extern nand_info_t nand_info[]; /* info for NAND chips */ - static int nand_dump_oob(nand_info_t *nand, ulong off) { return 0; diff --git a/common/env_nand.c b/common/env_nand.c index 70d05ad..3a98d2b 100644 --- a/common/env_nand.c +++ b/common/env_nand.c @@ -57,9 +57,6 @@ int nand_legacy_rw (struct nand_chip* nand, int cmd, size_t start, size_t len, 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 */ extern uchar default_environment[]; extern int default_environment_size; diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c index 1993dc2..7e27ee1 100644 --- a/fs/jffs2/jffs2_1pass.c +++ b/fs/jffs2/jffs2_1pass.c @@ -164,9 +164,6 @@ static struct part_info *current_part; /* this one defined in nand_legacy.c */ int read_jffs2_nand(size_t start, size_t len, 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 #define NAND_PAGE_SIZE 512 |