From: Grygorii Strashko Date: Fri, 10 Feb 2017 14:23:04 -0600 Subject: [U-Boot] [PATCH v3 17/17] mtd: nand: make nand_info array static In-Reply-To: <20170210202304.20652-1-grygorii.strashko@ti.com> References: <20170210202304.20652-1-grygorii.strashko@ti.com> Message-ID: <20170210202304.20652-18-grygorii.strashko@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- drivers/mtd/nand/nand.c | 2 +- include/nand.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/nand/nand.c b/drivers/mtd/nand/nand.c index 9d14fda..e567d61 100644 --- a/drivers/mtd/nand/nand.c +++ b/drivers/mtd/nand/nand.c @@ -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]; diff --git a/include/nand.h b/include/nand.h index 6c785a0..3b9d3c6 100644 --- a/include/nand.h +++ b/include/nand.h @@ -43,7 +43,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) -- 2.10.1.dirty