[U-Boot] [PATCH v2 7/9] i2c: sh_i2c.c: remove unused function

Nobuhiro Iwamatsu nobuhiro.iwamatsu.yj at renesas.com
Thu Sep 13 07:17:46 CEST 2012


On Wed, Sep 12, 2012 at 5:46 PM, Tetsuyuki Kobayashi <koba at kmckk.co.jp> wrote:
> irq_wait() was not used. So removed it to elminate compiler warnings.
>
> Signed-off-by: Tetsuyuki Kobayashi <koba at kmckk.co.jp>
> ---
> Changes for v2:
>  - new
>
>  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 e3ee804..60bad52 100644
> --- a/drivers/i2c/sh_i2c.c
> +++ b/drivers/i2c/sh_i2c.c
> @@ -58,22 +58,6 @@ static u16 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.9.5
>

Acked-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj at renesas.com>

Best regards,
  Nobuhiro


-- 
Nobuhiro Iwamatsu


More information about the U-Boot mailing list