From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Mon, 30 Mar 2009 07:21:50 +0200 Subject: [U-Boot] [Patch] soft_i2c.c compiler/linker error In-Reply-To: References: Message-ID: <49D056EE.7010000@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Jens, Jens Scharsig wrote: > This patch fix the compiler/linker errors > > common/cmd_i2c.c:1252: undefined reference to `i2c_get_bus_speed' > common/cmd_i2c.c:1256: undefined reference to `i2c_set_bus_speed' > > if board use CONFIG_I2C_CMD_TREE and CONFIG_I2C_MULTI_BUS is not uesd/undef > > Signed-off-by: Jens Scharsig > --- > > diff --git a/drivers/i2c/soft_i2c.c b/drivers/i2c/soft_i2c.c > index ed5f5b2..68b267f 100644 > --- a/drivers/i2c/soft_i2c.c > +++ b/drivers/i2c/soft_i2c.c > @@ -246,6 +246,7 @@ int i2c_set_bus_num(unsigned int bus) > #endif > return 0; > } > +#endif > > /* TODO: add 100/400k switching */ > unsigned int i2c_get_bus_speed(void) > @@ -260,7 +261,7 @@ int i2c_set_bus_speed(unsigned int speed) > > return 0; > } > -#endif > + > no need to add an empty line. [...] thanks for catching Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany