From 2a8af1873894dae030813c11e77ccee476ac11f8 Mon Sep 17 00:00:00 2001 From: wdenk Date: Wed, 13 Apr 2005 10:02:42 +0000 Subject: * 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 --- cpu/arm920t/at91rm9200/i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpu/arm920t') diff --git a/cpu/arm920t/at91rm9200/i2c.c b/cpu/arm920t/at91rm9200/i2c.c index 2743275..5692740 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; -- cgit v1.1