[U-Boot] [PATCH] i2c: sh: Remove irq_wait function

Nobuhiro Iwamatsu nobuhiro.iwamatsu.yj at renesas.com
Wed Oct 3 04:49:18 CEST 2012


irq_wait function is not referred to from anywhere.

Reported-by: Albert ARIBAUD <albert.u.boot at aribaud.net>
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj at renesas.com>

---
 drivers/i2c/sh_i2c.c |   16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/drivers/i2c/sh_i2c.c b/drivers/i2c/sh_i2c.c
index fd8cb92..3147123 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;
-- 
1.7.10.4



More information about the U-Boot mailing list