summaryrefslogtreecommitdiff
path: root/board/samsung/goni/goni.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/samsung/goni/goni.c')
-rw-r--r--board/samsung/goni/goni.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/board/samsung/goni/goni.c b/board/samsung/goni/goni.c
index 50e9210..ff76963 100644
--- a/board/samsung/goni/goni.c
+++ b/board/samsung/goni/goni.c
@@ -41,9 +41,16 @@ int board_init(void)
gd->bd->bi_arch_number = MACH_TYPE_GONI;
gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
-#if defined(CONFIG_POWER)
- pmic_init(I2C_5);
-#endif
+ return 0;
+}
+
+int power_init_board(void)
+{
+ int ret;
+
+ ret = pmic_init(I2C_5);
+ if (ret)
+ return ret;
return 0;
}