From 77b93e5e9b28328f76556e0c0b94889df47077d7 Mon Sep 17 00:00:00 2001 From: Ladislav Michl Date: Tue, 12 Jul 2016 20:28:20 +0200 Subject: mtd: OneNAND: allow board init function fail Signed-off-by: Ladislav Michl --- board/micronas/vct/ebi_onenand.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'board/micronas') 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; } -- cgit v1.2.3