Skip to content
Snippets Groups Projects
Commit 7a9dfe75 authored by Grygorii Strashko's avatar Grygorii Strashko Committed by Tom Rini
Browse files

mtd: nand: make nand_info array static


Make make nand_info array static, since all direct users of nand_info array
have been converted to use get_nand_dev_by_index() API.

Signed-off-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
parent 8a049dd6
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ DECLARE_GLOBAL_DATA_PTR;
int nand_curr_device = -1;
struct mtd_info *nand_info[CONFIG_SYS_MAX_NAND_DEVICE];
static struct mtd_info *nand_info[CONFIG_SYS_MAX_NAND_DEVICE];
#ifndef CONFIG_SYS_NAND_SELF_INIT
static struct nand_chip nand_chip[CONFIG_SYS_MAX_NAND_DEVICE];
......
......@@ -44,7 +44,6 @@ extern int board_nand_init(struct nand_chip *nand);
#endif
extern int nand_curr_device;
extern struct mtd_info *nand_info[];
static inline int nand_read(struct mtd_info *info, loff_t ofs, size_t *len,
u_char *buf)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment