summaryrefslogtreecommitdiff
path: root/drivers/i2c/zynq_i2c.c
diff options
context:
space:
mode:
authorJesper B. Christensen <jesper.christensen@cobham.com>2014-04-25 15:46:17 +0200
committerHeiko Schocher <hs@denx.de>2014-05-08 07:03:37 +0200
commit5146fc2b37a3098f0973b2f2339e069adfc7d272 (patch)
tree10b756a47f93fcf568f90bdbdb509f6569875af3 /drivers/i2c/zynq_i2c.c
parent173d294b94cfec10063a5be40934d6d8fb7981ce (diff)
downloadu-boot-imx-5146fc2b37a3098f0973b2f2339e069adfc7d272.zip
u-boot-imx-5146fc2b37a3098f0973b2f2339e069adfc7d272.tar.gz
u-boot-imx-5146fc2b37a3098f0973b2f2339e069adfc7d272.tar.bz2
i2c: zynq: Fixed compilation errors when using DEBUG
Signed-off-by: Jesper B. Christensen <jesper.christensen@cobham.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/i2c/zynq_i2c.c')
-rw-r--r--drivers/i2c/zynq_i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/zynq_i2c.c b/drivers/i2c/zynq_i2c.c
index f1f6513..b3264af 100644
--- a/drivers/i2c/zynq_i2c.c
+++ b/drivers/i2c/zynq_i2c.c
@@ -142,7 +142,7 @@ static u32 zynq_i2c_wait(struct zynq_i2c_registers *zynq_i2c, u32 mask)
break;
}
#ifdef DEBUG
- zynq_i2c_debug_status(zynq_i2c));
+ zynq_i2c_debug_status(zynq_i2c);
#endif
/* Clear interrupt status flags */
writel(int_status & mask, &zynq_i2c->interrupt_status);
@@ -235,7 +235,7 @@ static int zynq_i2c_read(struct i2c_adapter *adap, u8 dev, uint addr,
clrbits_le32(&zynq_i2c->control, ZYNQ_I2C_CONTROL_HOLD);
#ifdef DEBUG
- zynq_i2c_debug_status();
+ zynq_i2c_debug_status(zynq_i2c);
#endif
return 0;
}