From: Minkyu Kang Date: Mon, 23 Aug 2010 02:32:18 +0000 (+0900) Subject: s5pc210: universal: remove compiler warnings X-Git-Tag: JH03_20100826~19^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1eeae7baf835e9b3590655fb9e485e6dcfac566f;p=kernel%2Fu-boot.git s5pc210: universal: remove compiler warnings Signed-off-by: Minkyu Kang --- diff --git a/board/samsung/universal_c210/universal.c b/board/samsung/universal_c210/universal.c index e5aeb65..c2211dd 100644 --- a/board/samsung/universal_c210/universal.c +++ b/board/samsung/universal_c210/universal.c @@ -24,8 +24,9 @@ #include #include -#include #include +#include +#include DECLARE_GLOBAL_DATA_PTR; @@ -181,7 +182,7 @@ int dram_init(void) static void check_auto_burn(void) { - unsigned long magic_base = CONFIG_SYS_SDRAM_BASE + 0x02000000; + unsigned int magic_base = CONFIG_SYS_SDRAM_BASE + 0x02000000; unsigned int count = 0; char buf[64]; @@ -200,7 +201,7 @@ static void check_auto_burn(void) } /* Clear the magic value */ - memset(magic_base, 0, 2); + memset((void *)magic_base, 0, 2); } #define LP3974_REG_ONOFF1 0x11 @@ -304,7 +305,6 @@ static void init_pmic_max8952(void) { unsigned char addr; unsigned char val[2]; - char buf[4]; addr = 0xC0 >> 1; /* MAX8952 */ if (max8952_probe()) diff --git a/include/i2c.h b/include/i2c.h index cd23c8a..bea727f 100644 --- a/include/i2c.h +++ b/include/i2c.h @@ -154,6 +154,7 @@ int i2c_probe(uchar chip); * * Returns: 0 on success, not 0 on failure */ +int i2c_read_r(uchar chip, uint addr, int alen, uchar *buffer, int len); int i2c_read(uchar chip, uint addr, int alen, uchar *buffer, int len); int i2c_write(uchar chip, uint addr, int alen, uchar *buffer, int len);