Commit 7a9dfe75cf3fbc6c39b34c07e4d096f9573592aa

Authored by Grygorii Strashko
Committed by Tom Rini
1 parent 8a049dd642

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: Grygorii Strashko <grygorii.strashko@ti.com>

Showing 2 changed files with 1 additions and 2 deletions Side-by-side Diff

drivers/mtd/nand/nand.c
... ... @@ -19,7 +19,7 @@
19 19  
20 20 int nand_curr_device = -1;
21 21  
22   -struct mtd_info *nand_info[CONFIG_SYS_MAX_NAND_DEVICE];
  22 +static struct mtd_info *nand_info[CONFIG_SYS_MAX_NAND_DEVICE];
23 23  
24 24 #ifndef CONFIG_SYS_NAND_SELF_INIT
25 25 static struct nand_chip nand_chip[CONFIG_SYS_MAX_NAND_DEVICE];
... ... @@ -44,7 +44,6 @@
44 44 #endif
45 45  
46 46 extern int nand_curr_device;
47   -extern struct mtd_info *nand_info[];
48 47  
49 48 static inline int nand_read(struct mtd_info *info, loff_t ofs, size_t *len,
50 49 u_char *buf)