Skip to contentSkip to conversation

Fix at91 includes in soft_i2c driver

PATCH New Ryan Mallon 2 participants 2 messages Jan 26, 2011 – Jan 27, 2011 I2C

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix at91 includes in soft_i2c driver

Make at91 header includes in soft_i2c depend only on CONFIG_AT91FAMILY rather than individual SoCs.

---
 drivers/i2c/soft_i2c.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/i2c/soft_i2c.c +1 -3
index 1a1809a..69b5f42 100644
@@ -30,9 +30,7 @@
 #include <ioports.h>
 #include <asm/io.h>
 #endif
-#if defined(CONFIG_AT91RM9200) || \
-	defined(CONFIG_AT91SAM9260) ||  defined(CONFIG_AT91SAM9261) || \
-	defined(CONFIG_AT91SAM9263)
+#if defined(CONFIG_AT91FAMILY)
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/at91_pio.h>
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 Fix at91 includes in soft_i2c driver

Hello Ryan,

Quoted 7 lines · Ryan Mallon

Make at91 header includes in soft_i2c depend only on CONFIG_AT91FAMILY rather than individual SoCs.

---
 drivers/i2c/soft_i2c.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

Added to u-boot-i2c with the Acked-by from
Reinhard Meyer<[email protected]>

Thanks!
bye,
Heiko

Signature · 2 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany