diff options
Diffstat (limited to 'drivers/pinctrl/pinctrl-xway.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-xway.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/drivers/pinctrl/pinctrl-xway.c b/drivers/pinctrl/pinctrl-xway.c index 779950c62e53..ae724bdab3d3 100644 --- a/drivers/pinctrl/pinctrl-xway.c +++ b/drivers/pinctrl/pinctrl-xway.c | |||
@@ -682,28 +682,14 @@ static int xway_gpio_dir_out(struct gpio_chip *chip, unsigned int pin, int val) | |||
682 | return 0; | 682 | return 0; |
683 | } | 683 | } |
684 | 684 | ||
685 | static int xway_gpio_req(struct gpio_chip *chip, unsigned offset) | ||
686 | { | ||
687 | int gpio = chip->base + offset; | ||
688 | |||
689 | return pinctrl_request_gpio(gpio); | ||
690 | } | ||
691 | |||
692 | static void xway_gpio_free(struct gpio_chip *chip, unsigned offset) | ||
693 | { | ||
694 | int gpio = chip->base + offset; | ||
695 | |||
696 | pinctrl_free_gpio(gpio); | ||
697 | } | ||
698 | |||
699 | static struct gpio_chip xway_chip = { | 685 | static struct gpio_chip xway_chip = { |
700 | .label = "gpio-xway", | 686 | .label = "gpio-xway", |
701 | .direction_input = xway_gpio_dir_in, | 687 | .direction_input = xway_gpio_dir_in, |
702 | .direction_output = xway_gpio_dir_out, | 688 | .direction_output = xway_gpio_dir_out, |
703 | .get = xway_gpio_get, | 689 | .get = xway_gpio_get, |
704 | .set = xway_gpio_set, | 690 | .set = xway_gpio_set, |
705 | .request = xway_gpio_req, | 691 | .request = gpiochip_generic_request, |
706 | .free = xway_gpio_free, | 692 | .free = gpiochip_generic_free, |
707 | .base = -1, | 693 | .base = -1, |
708 | }; | 694 | }; |
709 | 695 | ||