summaryrefslogtreecommitdiff
path: root/board/samsung/universal_c210
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/samsung/universal_c210
parentd9098ee55f6cf6f51e2fbed0336957e2b7156225 (diff)
mtd: OneNAND: allow board init function fail
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Diffstat (limited to 'board/samsung/universal_c210')
-rw-r--r--board/samsung/universal_c210/onenand.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/samsung/universal_c210/onenand.c b/board/samsung/universal_c210/onenand.c
index 28bc8114f4..147a95e290 100644
--- a/board/samsung/universal_c210/onenand.c
+++ b/board/samsung/universal_c210/onenand.c
@@ -10,11 +10,13 @@
#include <linux/mtd/onenand.h>
#include <linux/mtd/samsung_onenand.h>
-void onenand_board_init(struct mtd_info *mtd)
+int onenand_board_init(struct mtd_info *mtd)
{
struct onenand_chip *this = mtd->priv;
this->base = (void *)CONFIG_SYS_ONENAND_BASE;
this->options |= ONENAND_RUNTIME_BADBLOCK_CHECK;
this->chip_probe = s5pc210_chip_probe;
+
+ return 0;
}