summaryrefslogtreecommitdiff
path: root/drivers/i2c/sh_i2c.c
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>2012-10-02 16:49:18 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-10-03 08:47:17 +0200
commit96d1e0933f5f0142d06d6efafb527f0fad7bad21 (patch)
tree4159b1ca99e44028908721b7dc7fc7e4e683e4c6 /drivers/i2c/sh_i2c.c
parent6deba095c7d0411f506297ff2e9510f27b5636ef (diff)
downloadu-boot-imx-96d1e0933f5f0142d06d6efafb527f0fad7bad21.zip
u-boot-imx-96d1e0933f5f0142d06d6efafb527f0fad7bad21.tar.gz
u-boot-imx-96d1e0933f5f0142d06d6efafb527f0fad7bad21.tar.bz2
i2c: sh: Remove irq_wait function
irq_wait function is not referred to from anywhere. Reported-by: Albert ARIBAUD <albert.u.boot@aribaud.net> Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Diffstat (limited to 'drivers/i2c/sh_i2c.c')
-rw-r--r--drivers/i2c/sh_i2c.c16
1 files changed, 0 insertions, 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;