summaryrefslogtreecommitdiff
path: root/cpu/arm920t
diff options
context:
space:
mode:
authorwdenk <wdenk>2005-04-13 10:02:42 +0000
committerwdenk <wdenk>2005-04-13 10:02:42 +0000
commit2a8af1873894dae030813c11e77ccee476ac11f8 (patch)
treeed52fefa46b69e1ec04ce0cc45e66ff07e1fd103 /cpu/arm920t
parente694e08a8b0b43e676c48867ca2cc28f4a7f2b84 (diff)
* Fixes for TQM8560 board:
- fix clock rates - remove debug messages - fix flash sector protection * Patch by Steven Scholz, 07 Apr 2005: Fix warning in cpu/arm920t/at91rm9200/i2c.c
Diffstat (limited to 'cpu/arm920t')
-rw-r--r--cpu/arm920t/at91rm9200/i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/arm920t/at91rm9200/i2c.c b/cpu/arm920t/at91rm9200/i2c.c
index 274327548b..569274082f 100644
--- a/cpu/arm920t/at91rm9200/i2c.c
+++ b/cpu/arm920t/at91rm9200/i2c.c
@@ -138,12 +138,12 @@ i2c_read (unsigned char chip, unsigned int addr, int alen,
int
i2c_write(unsigned char chip, unsigned int addr, int alen,
- unsigned char *buffer, int len)
+ unsigned char *buffer, int len)
{
+#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW
int i;
unsigned char *buf;
-#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW
/* we only allow one address byte */
if (alen > 1)
return 1;