[U-Boot] [PATCH 08/17] km/powerpc82xx: remove unused function

Heiko Schocher hs at denx.de
Mon Nov 16 12:01:42 CET 2015


Hello Valentin,

Am 13.11.2015 um 15:59 schrieb Valentin Longchamp:
> From: Holger Brunck <holger.brunck at keymile.com>
>
> commit 0a4f88b98 removed the usage of our setports function, but the
> function itself were not removed. So toss it it's dead code.
>
> Signed-off-by: Holger Brunck <holger.brunck at keymile.com>
> Signed-off-by: Valentin Longchamp <valentin.longchamp at keymile.com>
> ---
>
>   board/keymile/km82xx/km82xx.c | 16 ----------------
>   1 file changed, 16 deletions(-)


Reviewed-by: Heiko Schocher <hs at denx.de>

bye,
Heiko
>
> diff --git a/board/keymile/km82xx/km82xx.c b/board/keymile/km82xx/km82xx.c
> index 70f816b..01a3c20 100644
> --- a/board/keymile/km82xx/km82xx.c
> +++ b/board/keymile/km82xx/km82xx.c
> @@ -447,22 +447,6 @@ int get_scl(void)
>   	return get_pin(SCL_MASK, 3);
>   }
>
> -#if defined(CONFIG_HARD_I2C)
> -static void setports(int gpio)
> -{
> -	ioport_t *iop = ioport_addr((immap_t *)CONFIG_SYS_IMMR, 3);
> -
> -	if (gpio) {
> -		clrbits_be32(&iop->ppar, (SDA_MASK | SCL_MASK));
> -		clrbits_be32(&iop->podr, (SDA_MASK | SCL_MASK));
> -	} else {
> -		setbits_be32(&iop->ppar, (SDA_MASK | SCL_MASK));
> -		clrbits_be32(&iop->pdir, (SDA_MASK | SCL_MASK));
> -		setbits_be32(&iop->podr, (SDA_MASK | SCL_MASK));
> -	}
> -}
> -#endif
> -
>   void ft_board_setup(void *blob, bd_t *bd)
>   {
>   	ft_cpu_setup(blob, bd);
>

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany


More information about the U-Boot mailing list