Message ID | CALrBrZ2JtMfKPv0z+b17OcHLHtjP0EYoo5=Bp=mRBY7HsxyaJQ@mail.gmail.com |
---|---|
State | Rejected |
Delegated to: | Albert ARIBAUD |
Headers | show |
Dear Amar, On 07/07/13 14:43, Minkyu Kang wrote: > Dear Amar, > > > On 6 July 2013 04:12, Albert ARIBAUD <albert.u.boot@aribaud.net <mailto:albert.u.boot@aribaud.net>> wrote: > > Hi Minkyu, > > This breaks build of VCMA9: > > s3c24x0_i2c.c: In function 'board_i2c_init': > s3c24x0_i2c.c:544:18: error: 'CONFIG_MAX_I2C_NUM' undeclared (first use > in this function) s3c24x0_i2c.c:544:18: note: each undeclared > identifier is reported only once for each function it appears in > s3c24x0_i2c.c:545:3: warning: implicit declaration of function > 'exynos_pinmux_config' [-Wimplicit-function-declaration] > s3c24x0_i2c.c:545:25: error: 'PERIPH_ID_I2C0' undeclared (first use in > this function) s3c24x0_i2c.c:546:10: error: 'PINMUX_FLAG_NONE' > undeclared (first use in this function) make[1]: *** > [/home/albert/src/u-boot-arm/build/VCMA9/drivers/i2c/s3c24x0_i2c.o] > Error 1 make: *** > [/home/albert/src/u-boot-arm/build/VCMA9/drivers/i2c/libi2c.o] Error 2 > > Culprit is commit 2c07bb9b, authored by Amar <amarendra.xt@samsung.com <mailto:amarendra.xt@samsung.com>>. > > (also: "Amar" seems to be only part of the author's name. Is this > intentional?) > > Amicalement, > -- > Albert. > > > please check. > seems have problem with non-FDT case. > Because of we should merge samsung tree to arm tree before release "v2013.07". If you don't do anything, I will revert this patch. Thanks, Minkyu Kang.
diff --git a/drivers/i2c/s3c24x0_i2c.c b/drivers/i2c/s3c24x0_i2c.c index 46d2506..3fc1c5b 100644 --- a/drivers/i2c/s3c24x0_i2c.c +++ b/drivers/i2c/s3c24x0_i2c.c @@ -515,11 +515,12 @@ int i2c_write(uchar chip, uint addr, int alen, uchar *buffer, int len) len) != 0); } -#ifdef CONFIG_OF_CONTROL void board_i2c_init(const void *blob) { + int i; +#ifdef CONFIG_OF_CONTROL int node_list[CONFIG_MAX_I2C_NUM]; - int count, i; + int count; count = fdtdec_find_aliases_for_id(blob, "i2c",