diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-01-05 16:09:44 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-01-07 03:00:22 -0500 |
commit | 032a1c934ef4dc003281f57302b6e693062c1868 (patch) | |
tree | fb8bb8f90c3b18b996dc56444471364ab6d265ff /board/bf537-stamp/nand.c | |
parent | 687f952e4119594ab913be11c90f7f018c2a7a79 (diff) | |
download | u-boot-imx-032a1c934ef4dc003281f57302b6e693062c1868.zip u-boot-imx-032a1c934ef4dc003281f57302b6e693062c1868.tar.gz u-boot-imx-032a1c934ef4dc003281f57302b6e693062c1868.tar.bz2 |
bf537-stamp/nand: fix board_nand_init prototype
The board_nand_init() function should return an int, not void.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'board/bf537-stamp/nand.c')
-rw-r--r-- | board/bf537-stamp/nand.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/board/bf537-stamp/nand.c b/board/bf537-stamp/nand.c index c597f2d..20a7d0e 100644 --- a/board/bf537-stamp/nand.c +++ b/board/bf537-stamp/nand.c @@ -87,7 +87,7 @@ int bfin_device_ready(struct mtd_info *mtd) * Members with a "?" were not set in the merged testing-NAND branch, * so they are not set here either. */ -void board_nand_init(struct nand_chip *nand) +int board_nand_init(struct nand_chip *nand) { *PORT(CONFIG_NAND_GPIO_PORT, _FER) &= ~BFIN_NAND_READY; *PORT(CONFIG_NAND_GPIO_PORT, IO_DIR) &= ~BFIN_NAND_READY; @@ -97,5 +97,7 @@ void board_nand_init(struct nand_chip *nand) nand->ecc.mode = NAND_ECC_SOFT; nand->dev_ready = bfin_device_ready; nand->chip_delay = 30; + + return 0; } #endif |