summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcharles.park <charles.park@hardkernel.com>2017-08-03 07:53:22 +0300
committercharles.park <charles.park@hardkernel.com>2017-08-03 07:53:22 +0300
commit314185a7872a47805119c1da33281c0a66bc99a4 (patch)
tree86749d36f31257cd21b01a008bdfb2392bdb1e72
parentebc1a01f2ed75db0fcaa7cf4b1587b3619918221 (diff)
downloadu-boot-314185a7872a47805119c1da33281c0a66bc99a4.tar.xz
ODROID-XU4 : compile error fix.
Change-Id: Id6aa561ac37f7ef8dab5b8cc430794dfcc97c6c5
-rwxr-xr-xboard/samsung/common/board.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c
index 7ced0a4368..ebedde01f6 100755
--- a/board/samsung/common/board.c
+++ b/board/samsung/common/board.c
@@ -98,11 +98,6 @@ int board_init(void)
gd->ram_size -= size;
gd->bd->bi_dram[CONFIG_NR_DRAM_BANKS - 1].size -= size;
#endif
-
-#if defined(CONFIG_TARGET_ODROID_XU4) || defined(CONFIG_TARGET_ODROID_XU3)
- odroid_misc_init();
-#endif
-
return exynos_init();
}
@@ -317,6 +312,9 @@ int checkboard(void)
#ifdef CONFIG_BOARD_LATE_INIT
int board_late_init(void)
{
+#if defined(CONFIG_TARGET_ODROID_XU4) || defined(CONFIG_TARGET_ODROID_XU3)
+ odroid_misc_init();
+#else
stdio_print_current_devices();
if (cros_ec_get_error()) {
@@ -329,6 +327,7 @@ int board_late_init(void)
panic("Cannot init cros-ec device");
return -1;
}
+#endif
return 0;
}
#endif