Skip to content

Commit

Permalink
universal_c210: fix compiler error and compiler warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Donghwa Lee <[email protected]>
Cc: Lukasz Majewski <[email protected]>
Tested-by: Piotr Wilczek <[email protected]>
  • Loading branch information
MinkyuKang committed Dec 10, 2012
1 parent 2c601c7 commit 48e91ca
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions board/samsung/universal_c210/universal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -63,6 +65,8 @@ int power_init_board(void)
if (ret)
return ret;

init_pmic_lcd();

return 0;
}

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 48e91ca

Please sign in to comment.