From patchwork Thu Feb 10 10:30:04 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [U-Boot] soft_i2c: add necessary includes for AVR32 Date: Thu, 10 Feb 2011 00:30:04 -0000 From: =?utf-8?q?Andreas_Bie=C3=9Fmann?= X-Patchwork-Id: 82591 Message-Id: <1297333804-11677-1-git-send-email-biessmann@corscience.de> To: u-boot@lists.denx.de Cc: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= Signed-off-by: Andreas Bießmann --- This patch could also go through AT91/AVR32 rework branch. Currently no in-tree board uses soft-i2c. But when using soft-i2c and including portmux.h in board header imximage.o complains about double definition of sync() (once in asm/io.h and once in system unistd.h). drivers/i2c/soft_i2c.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/soft_i2c.c b/drivers/i2c/soft_i2c.c index 69b5f42..e62978a 100644 --- a/drivers/i2c/soft_i2c.c +++ b/drivers/i2c/soft_i2c.c @@ -30,6 +30,9 @@ #include #include #endif +#if defined(CONFIG_AVR32) +#include +#endif #if defined(CONFIG_AT91FAMILY) #include #include