Skip to content
Snippets Groups Projects
Commit 96d1e093 authored by Nobuhiro Iwamatsu's avatar Nobuhiro Iwamatsu Committed by Albert ARIBAUD
Browse files

i2c: sh: Remove irq_wait function


irq_wait function is not referred to from anywhere.

Reported-by: default avatarAlbert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: default avatarNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
parent 6deba095
No related branches found
No related tags found
No related merge requests found
...@@ -52,22 +52,6 @@ static u8 iccl, icch; ...@@ -52,22 +52,6 @@ static u8 iccl, icch;
#define IRQ_WAIT 1000 #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) static void irq_dte(struct sh_i2c *base)
{ {
int i; int i;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment