From: Minkyu Kang Date: Fri, 26 Feb 2010 01:34:13 +0000 (+0900) Subject: s5pc1xx: universal: codes clean up X-Git-Tag: JB18_20100226~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=365b3ca23151c020a9233468f5c0c71c5c35cc57;p=kernel%2Fu-boot.git s5pc1xx: universal: codes clean up Signed-off-by: Minkyu Kang --- diff --git a/board/samsung/universal/universal.c b/board/samsung/universal/universal.c index a980b5a..fe853c3 100644 --- a/board/samsung/universal/universal.c +++ b/board/samsung/universal/universal.c @@ -908,9 +908,9 @@ static void check_battery(int mode) if (machine_is_aquila()) { if (board_is_j1b2()) return; - } else if (machine_is_kessler()) + } else if (machine_is_kessler()) { i2c_set_bus_num(I2C_GPIO7); - else if (machine_is_cypress()) { + } else if (machine_is_cypress()) { i2c_set_bus_num(I2C_GPIO7); } else if (machine_is_geminus()) { if (hwrevision(1)) @@ -1292,18 +1292,20 @@ static void into_charge_mode(void) int k; bmp = gunzip_bmp(bmp_addr[j], &len); - lcd_display_bitmap((ulong) bmp, 140, 202); + lcd_display_bitmap((ulong)bmp, 140, 202); free(bmp); - for (k = 0; k < 10; k++) + for (k = 0; k < 10; k++) { if (max8998_power_key()) { lcd_display_clear(); goto restore_screen; } else if (!max8998_has_ext_power_source()) { lcd_display_clear(); goto restore_screen; - } else + } else { udelay(100 * 1000); + } + } } } exit_font();