summaryrefslogtreecommitdiff
path: root/drivers/omap24xx_i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/omap24xx_i2c.c')
-rw-r--r--drivers/omap24xx_i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/omap24xx_i2c.c b/drivers/omap24xx_i2c.c
index 8fe641f810..cbce3064d5 100644
--- a/drivers/omap24xx_i2c.c
+++ b/drivers/omap24xx_i2c.c
@@ -31,7 +31,7 @@
static u32 i2c_base = I2C_DEFAULT_BASE;
static u32 i2c_speed = CFG_I2C_SPEED;
-//#define DEBUG
+// #define DEBUG 1
#if DEBUG
@@ -450,7 +450,7 @@ int i2c_write(uchar chip, uint addr, int alen, uchar * buffer, int len)
for (i = 0; i < len; i++) {
if (i2c_write_byte(chip, addr + i, buffer[i])) {
- printf("I2C read: I/O error\n");
+ printf("I2C write: I/O error\n");
i2c_init(i2c_speed, CFG_I2C_SLAVE);
return 1;
}