Skip to contentSkip to conversation

soft_i2c: add necessary includes for AVR32

PATCH New Andreas Bießmann 1 participant 1 message Feb 10, 2011 I2C

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soft_i2c: add necessary includes for AVR32

---
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(-)
drivers/i2c/soft_i2c.c +3 -0
index 69b5f42..e62978a 100644
@@ -30,6 +30,9 @@
 #include <ioports.h>
 #include <asm/io.h>
 #endif
+#if defined(CONFIG_AVR32)
+#include <asm/arch/portmux.h>
+#endif
 #if defined(CONFIG_AT91FAMILY)
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
Signature · 1 line
1.7.2.3