[U-Boot] [PATCH 14/18] smdk5420: board: fix build warning for testing dm i2c

Przemyslaw Marczak p.marczak at samsung.com
Thu Jan 8 12:33:25 CET 2015


If pmic is disabled for testing dm i2c then some unused
variable should be moved around proper ifdef in smdk5420.c

Signed-off-by: Przemyslaw Marczak <p.marczak at samsung.com>
Cc: Akshay Saraswat <akshay.s at samsung.com>
Cc: Simon Glass <sjg at chromium.org>
Cc: Minkyu Kang <mk7.kang at samsung.com>
---
 board/samsung/smdk5420/smdk5420.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/samsung/smdk5420/smdk5420.c b/board/samsung/smdk5420/smdk5420.c
index 1aca9fa..5738fd3 100644
--- a/board/samsung/smdk5420/smdk5420.c
+++ b/board/samsung/smdk5420/smdk5420.c
@@ -44,9 +44,9 @@ static int has_edp_bridge(void)
 
 void exynos_lcd_power_on(void)
 {
+#ifdef CONFIG_POWER_TPS65090
 	int ret;
 
-#ifdef CONFIG_POWER_TPS65090
 	ret = tps65090_init();
 	if (ret < 0) {
 		printf("%s: tps65090_init() failed\n", __func__);
-- 
1.9.1



More information about the U-Boot mailing list