All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Scharsig <esw@bus-elektronik.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [Patch] soft_i2c.c compiler/linker error
Date: Fri, 27 Mar 2009 11:31:12 +0100	[thread overview]
Message-ID: <gqi9tg$cmf$1@ger.gmane.org> (raw)

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 <esw@bus-elektronik.de>
---

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
+
 
 /*-----------------------------------------------------------------------
  * if ack == I2C_ACK, ACK the byte so can continue reading, else

             reply	other threads:[~2009-03-27 10:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-27 10:31 Jens Scharsig [this message]
2009-03-27 10:46 ` [U-Boot] [Patch] soft_i2c.c compiler/linker error Jean-Christophe PLAGNIOL-VILLARD
2009-03-27 11:30   ` Jens Scharsig
2009-03-30  5:22   ` Heiko Schocher
2009-03-30  8:00     ` Jens Scharsig
2009-03-30  5:21 ` Heiko Schocher
2009-03-30  7:51 ` [U-Boot] [Patch V2] " Jens Scharsig
2009-03-31  6:32   ` Heiko Schocher
2009-03-31  6:18     ` [U-Boot] [Patch V2.1] " Jens Scharsig
2009-03-31  7:08       ` Heiko Schocher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='gqi9tg$cmf$1@ger.gmane.org' \
    --to=esw@bus-elektronik.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.