From: Nobuhiro Iwamatsu Date: Tue, 2 Oct 2012 16:49:18 +0000 (+0000) Subject: i2c: sh: Remove irq_wait function X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=96d1e0933f5f0142d06d6efafb527f0fad7bad21;p=u-boot.git i2c: sh: Remove irq_wait function irq_wait function is not referred to from anywhere. Reported-by: Albert ARIBAUD Signed-off-by: Nobuhiro Iwamatsu --- diff --git a/drivers/i2c/sh_i2c.c b/drivers/i2c/sh_i2c.c index fd8cb9285c..3147123bba 100644 --- a/drivers/i2c/sh_i2c.c +++ b/drivers/i2c/sh_i2c.c @@ -52,22 +52,6 @@ static u8 iccl, icch; #define IRQ_WAIT 1000 -static void irq_wait(struct sh_i2c *base) -{ - int i; - u8 status; - - for (i = 0 ; i < IRQ_WAIT ; i++) { - status = readb(&base->icsr); - if (SH_IC_WAIT & status) - break; - - udelay(10); - } - - writeb(status & ~SH_IC_WAIT, &base->icsr); -} - static void irq_dte(struct sh_i2c *base) { int i;