summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorMinkyu Kang <mk7.kang@samsung.com>2012-12-09 20:50:11 +0000
committerMinkyu Kang <mk7.kang@samsung.com>2012-12-10 22:28:10 +0900
commit48e91caefe572117d68c7b7bc194225e51555950 (patch)
tree1d5e8b31689aeb82847c0c8b346df363c1baaa54 /board
parent2c601c7208713ba9b2158c57adcf515f4bdbc212 (diff)
downloadu-boot-imx-48e91caefe572117d68c7b7bc194225e51555950.zip
u-boot-imx-48e91caefe572117d68c7b7bc194225e51555950.tar.gz
u-boot-imx-48e91caefe572117d68c7b7bc194225e51555950.tar.bz2
universal_c210: fix compiler error and compiler warning
This patch fix following errors universal.c: In function 'init_pmic_lcd': universal.c:340: warning: implicit declaration of function 'get_pmic' universal.c:340: warning: initialization makes pointer from integer without a cast universal.c: In function 'lcd_power_on': universal.c:431: warning: initialization makes pointer from integer without a cast universal.c: At top level: universal.c:335: warning: 'init_pmic_lcd' defined but not used Signed-off-by: Minkyu Kang <mk7.kang@samsung.com> Cc: Donghwa Lee <dh09.lee@samsung.com> Cc: Lukasz Majewski <l.majewski@samsung.com> Tested-by: Piotr Wilczek <p.wilczek@samsung.com>
Diffstat (limited to 'board')
-rw-r--r--board/samsung/universal_c210/universal.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/board/samsung/universal_c210/universal.c b/board/samsung/universal_c210/universal.c
index 3d508be..4869798 100644
--- a/board/samsung/universal_c210/universal.c
+++ b/board/samsung/universal_c210/universal.c
@@ -55,6 +55,8 @@ static int get_hwrev(void)
return board_rev & 0xFF;
}
+static void init_pmic_lcd(void);
+
int power_init_board(void)
{
int ret;
@@ -63,6 +65,8 @@ int power_init_board(void)
if (ret)
return ret;
+ init_pmic_lcd();
+
return 0;
}
@@ -337,7 +341,7 @@ static void init_pmic_lcd(void)
unsigned char val;
int ret = 0;
- struct pmic *p = get_pmic();
+ struct pmic *p = pmic_get("MAX8998_PMIC");
if (pmic_probe(p))
return;
@@ -428,7 +432,7 @@ static void reset_lcd(void)
static void lcd_power_on(void)
{
- struct pmic *p = get_pmic();
+ struct pmic *p = pmic_get("MAX8998_PMIC");
if (pmic_probe(p))
return;