diff mbox

[U-Boot,10/19] dm: board:samsung: power_init_board: add requirement of CONFIG_DM_PMIC

Message ID 1412801335-1591-11-git-send-email-p.marczak@samsung.com
State Superseded
Delegated to: Simon Glass
Headers show

Commit Message

Przemyslaw Marczak Oct. 8, 2014, 8:48 p.m. UTC
In the power_init_board function call, regulator driver init is called,
so before compile, make sure that any power framework is defined.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
---
 board/samsung/common/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c
index e1fc123..e4cddc2 100644
--- a/board/samsung/common/board.c
+++ b/board/samsung/common/board.c
@@ -166,7 +166,7 @@  int board_early_init_f(void)
 }
 #endif
 
-#if defined(CONFIG_POWER)
+#if defined(CONFIG_POWER) || defined(CONFIG_DM_PMIC)
 int power_init_board(void)
 {
 	set_ps_hold_ctrl();