From e9d5bef0344413734b8dd25ba1388babadc6bf0c Mon Sep 17 00:00:00 2001 From: Minkyu Kang Date: Fri, 22 Jan 2010 12:03:05 +0900 Subject: [PATCH] s5pc110: universal: kill warnings universal.c: In function 'into_charge_mode': universal.c:1080: warning: assignment makes integer from pointer without a cast universal.c:1089: warning: implicit declaration of function 'free' universal.c: In function 'max8998_power_key': universal.c:1045: warning: control reaches end of non-void function Signed-off-by: Minkyu Kang --- board/samsung/universal/universal.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/board/samsung/universal/universal.c b/board/samsung/universal/universal.c index 5982438..e04f7c9 100644 --- a/board/samsung/universal/universal.c +++ b/board/samsung/universal/universal.c @@ -24,6 +24,7 @@ #include #include +#include #include #include #include @@ -1042,7 +1043,10 @@ static int max8998_power_key(void) printf("MAX8998 IRQ1 = 0x%x\n", val[0]); if (val[0] & (1 << 6)) return 1; + + return 0; } + static void into_charge_mode(void) { unsigned char addr = 0xCC >> 1; /* max8998 */; @@ -1077,7 +1081,7 @@ static void into_charge_mode(void) level = CHARGER_ANIMATION_FRAME - 1; for (i = 0; i < CHARGER_ANIMATION_FRAME; i++) - bmp_addr[i] = battery_charging_animation[i]; + bmp_addr[i] = (ulong)battery_charging_animation[i]; lcd_display_clear(); for (i = 0; i < 3; i++) { -- 2.7.4