From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Tue, 06 May 2014 14:00:48 +0200 Subject: [U-Boot] [PATCH] i2c: zynq: Fixed compilation errors when using DEBUG In-Reply-To: <5368C9E2.3080005@monstr.eu> References: <8233f695917962a5422709057261fbcd4c34c5a7.1398433572.git.michal.simek@xilinx.com> <5368C9E2.3080005@monstr.eu> Message-ID: <5368CEF0.8080804@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Michael, Am 06.05.2014 13:39, schrieb Michal Simek: > Hi Heiko, > > On 04/25/2014 03:46 PM, Michal Simek wrote: >> From: "Jesper B. Christensen" >> >> Signed-off-by: Jesper B. Christensen >> Signed-off-by: Michal Simek >> --- >> >> drivers/i2c/zynq_i2c.c | 4 ++-- >> 1 file 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; >> } >> -- >> 1.8.2.3 >> > > Can you please add this patch to your i2c custodian repo? Added it to my ToDo list in patchwork bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany