summaryrefslogtreecommitdiff
path: root/board/micronas
diff options
context:
space:
mode:
authorLadislav Michl <ladis@linux-mips.org>2016-07-12 20:28:20 +0200
committerTom Rini <trini@konsulko.com>2016-07-22 14:46:12 -0400
commit77b93e5e9b28328f76556e0c0b94889df47077d7 (patch)
tree352199b0f3e03ab87b45bafa12ce7d12c85c8364 /board/micronas
parentd9098ee55f6cf6f51e2fbed0336957e2b7156225 (diff)
downloadu-boot-77b93e5e9b28328f76556e0c0b94889df47077d7.tar.gz
u-boot-77b93e5e9b28328f76556e0c0b94889df47077d7.tar.bz2
u-boot-77b93e5e9b28328f76556e0c0b94889df47077d7.zip
mtd: OneNAND: allow board init function fail
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Diffstat (limited to 'board/micronas')
-rw-r--r--board/micronas/vct/ebi_onenand.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/micronas/vct/ebi_onenand.c b/board/micronas/vct/ebi_onenand.c
index 62eb6489be..ef892cae15 100644
--- a/board/micronas/vct/ebi_onenand.c
+++ b/board/micronas/vct/ebi_onenand.c
@@ -169,7 +169,7 @@ static int ebi_write_bufferram(struct mtd_info *mtd, loff_t addr, int area,
return 0;
}
-void onenand_board_init(struct mtd_info *mtd)
+int onenand_board_init(struct mtd_info *mtd)
{
struct onenand_chip *chip = mtd->priv;
@@ -181,4 +181,6 @@ void onenand_board_init(struct mtd_info *mtd)
chip->read_bufferram = ebi_read_bufferram;
chip->write_bufferram = ebi_write_bufferram;
+
+ return 0;
}