diff options
author | Lei Wen <leiwen@marvell.com> | 2011-09-30 05:43:48 +0000 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2011-10-03 11:47:07 +0200 |
commit | 2be1ed349ca268d3867840fd28960785fd3def0b (patch) | |
tree | 972ee2b164ef7b466cf13abef977620e0a0f0088 | |
parent | 7b8ffea2ac44097ed1c99ba70b8c6a4cf12ba0b4 (diff) | |
download | u-boot-imx-2be1ed349ca268d3867840fd28960785fd3def0b.zip u-boot-imx-2be1ed349ca268d3867840fd28960785fd3def0b.tar.gz u-boot-imx-2be1ed349ca268d3867840fd28960785fd3def0b.tar.bz2 |
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.)
Signed-off-by: Lei Wen <leiwen@marvell.com>
-rw-r--r-- | drivers/i2c/mv_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/mv_i2c.c b/drivers/i2c/mv_i2c.c index dcbe1ae..8eb30e7 100644 --- a/drivers/i2c/mv_i2c.c +++ b/drivers/i2c/mv_i2c.c @@ -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; } |