Skip to contentSkip to conversation

bf537-stamp/nand: fix board_nand_init prototype

PATCH New Mike Frysinger 1 participant 1 message Jan 6, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bf537-stamp/nand: fix board_nand_init prototype

The board_nand_init() function should return an int, not void.

---
 board/bf537-stamp/nand.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
board/bf537-stamp/nand.c +3 -1
index c597f2d..20a7d0e 100644
@@ -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
Signature · 1 line
1.6.0.6