]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - cpu/arm920t/at91rm9200/i2c.c
* Fixes for TQM8560 board:
[karo-tx-uboot.git] / cpu / arm920t / at91rm9200 / i2c.c
index 274327548b4fc8696c83b33629e5bb59805b8f38..569274082f2afbe3e5ef86daefed4abac8b3116a 100644 (file)
@@ -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;