Skip to contentSkip to conversation

I2C: mv_i2c: fix build issue when enable debug option

PATCH New Lei Wen 2 participants 2 messages Sep 30, 2011 – Oct 3, 2011 I2C

lore
Share & tools
lore

Lei Wen

author
#0 lore raw

PATCH 1/1 I2C: mv_i2c: fix build issue when enable debug option

When DEBUG_I2C is open, the following build issue would shows up.

mv_i2c.c: In function 'i2c_transfer':
mv_i2c.c:257: error: 'ISR' undeclared (first use in this function) mv_i2c.c:257: error: (Each undeclared identifier is reported only once mv_i2c.c:257: error: for each function it appears in.)

---
 drivers/i2c/mv_i2c.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/mv_i2c.c +1 -1
index dcbe1ae..8eb30e7 100644
@@ -253,7 +253,7 @@ transfer_error_bus_busy:
 		ret = -6; goto i2c_transfer_finish;
 
 i2c_transfer_finish:
-		PRINTD(("i2c_transfer: ISR: 0x%04x\n", ISR));
+		PRINTD(("i2c_transfer: ISR: 0x%04x\n", readl(&base->isr)));
 		i2c_reset();
 		return ret;
 }
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 I2C: mv_i2c: fix build issue when enable debug option

Hello Lei,

Quoted 11 lines · Lei Wen

When DEBUG_I2C is open, the following build issue would shows up.

mv_i2c.c: In function 'i2c_transfer':
mv_i2c.c:257: error: 'ISR' undeclared (first use in this function) mv_i2c.c:257: error: (Each undeclared identifier is reported only once mv_i2c.c:257: error: for each function it appears in.)

---
 drivers/i2c/mv_i2c.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Applied to u-boot-i2c.git

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