]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
bf537-stamp/nand: fix board_nand_init prototype
authorMike Frysinger <vapier@gentoo.org>
Mon, 5 Jan 2009 21:09:44 +0000 (16:09 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 7 Jan 2009 08:00:22 +0000 (03:00 -0500)
The board_nand_init() function should return an int, not void.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
board/bf537-stamp/nand.c

index c597f2db1e3586340e630254976f78f7badf8143..20a7d0ef4c62e81ac20d8c32bbe715e892930bbc 100644 (file)
@@ -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