diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-12-06 02:40:55 -0500 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2009-01-23 10:32:49 -0600 |
commit | 69fb8be4fc07162fdf6edf04bdc7233b0e9a920e (patch) | |
tree | e3a8292ceeaef00135e97e79143506de8b61ec28 /drivers | |
parent | 1ae39862044ebb1e682234b51f94421e3f871d6a (diff) | |
download | u-boot-imx-69fb8be4fc07162fdf6edf04bdc7233b0e9a920e.zip u-boot-imx-69fb8be4fc07162fdf6edf04bdc7233b0e9a920e.tar.gz u-boot-imx-69fb8be4fc07162fdf6edf04bdc7233b0e9a920e.tar.bz2 |
NAND: move board_nand_init to nand.h
Rather than putting the function prototype for board_nand_init() in the one
place where it gets called, put it into nand.h so that every place that also
defines it gets the prototype. Otherwise, errors can go silently unnoticed
such as using the wrong return value (void rather than int) when defining
the function.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/nand/nand.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/nand/nand.c b/drivers/mtd/nand/nand.c index eeb19ff..cf92617 100644 --- a/drivers/mtd/nand/nand.c +++ b/drivers/mtd/nand/nand.c @@ -36,8 +36,6 @@ static ulong base_address[CONFIG_SYS_MAX_NAND_DEVICE] = CONFIG_SYS_NAND_BASE_LIS static const char default_nand_name[] = "nand"; -extern int board_nand_init(struct nand_chip *nand); - static void nand_init_chip(struct mtd_info *mtd, struct nand_chip *nand, ulong base_addr) { |