mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-26 13:44:29 +08:00
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>
This commit is contained in:
parent
6deba095c7
commit
96d1e0933f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user