From 0ecdab682c06b983b0ad30c69921b79e168e62b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Majewski?= Date: Tue, 13 Nov 2012 03:22:16 +0000 Subject: [PATCH] arm:goni:pmic: Adjust GONI target platform board to new PMIC framework Move pmic_init() function call from board_init() to power_init_board() to work with new PMIC/POWER framework. Signed-off-by: Lukasz Majewski Signed-off-by: Kyungmin Park Cc: Minkyu Kang --- board/samsung/goni/goni.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/board/samsung/goni/goni.c b/board/samsung/goni/goni.c index 50e92104e1..ff76963925 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; } -- 2.25.1