diff options
Diffstat (limited to 'drivers/gpio/sunxi_gpio.c')
| -rw-r--r-- | drivers/gpio/sunxi_gpio.c | 17 | 
1 files changed, 0 insertions, 17 deletions
| diff --git a/drivers/gpio/sunxi_gpio.c b/drivers/gpio/sunxi_gpio.c index 24cb604e3e3..cdbc40d48fd 100644 --- a/drivers/gpio/sunxi_gpio.c +++ b/drivers/gpio/sunxi_gpio.c @@ -14,14 +14,11 @@  #include <errno.h>  #include <fdtdec.h>  #include <malloc.h> -#include <asm/arch/gpio.h>  #include <asm/io.h>  #include <asm/gpio.h>  #include <dm/device-internal.h>  #include <dt-bindings/gpio/gpio.h> -#define SUNXI_GPIOS_PER_BANK	SUNXI_GPIO_A_NR -  struct sunxi_gpio_plat {  	struct sunxi_gpio *regs;  	const char *bank_name;	/* Name of bank, e.g. "B" */ @@ -118,20 +115,6 @@ int sunxi_name_to_gpio(const char *name)  }  #endif /* DM_GPIO */ -int sunxi_name_to_gpio_bank(const char *name) -{ -	int group = 0; - -	if (*name == 'P' || *name == 'p') -		name++; -	if (*name >= 'A') { -		group = *name - (*name > 'a' ? 'a' : 'A'); -		return group; -	} - -	return -1; -} -  #if CONFIG_IS_ENABLED(DM_GPIO)  /* TODO(sjg@chromium.org): Remove this function and use device tree */  int sunxi_name_to_gpio(const char *name) | 
