diff options
-rw-r--r-- | drivers/gpio/gpio-aspeed.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/gpio/gpio-aspeed.c b/drivers/gpio/gpio-aspeed.c index 2f23fb1034b5..aa4573f03cb6 100644 --- a/drivers/gpio/gpio-aspeed.c +++ b/drivers/gpio/gpio-aspeed.c @@ -16,7 +16,6 @@ #include <linux/spinlock.h> #include <linux/platform_device.h> #include <linux/gpio/driver.h> -#include <linux/pinctrl/consumer.h> struct aspeed_gpio { struct gpio_chip chip; @@ -367,15 +366,6 @@ static void aspeed_gpio_setup_irqs(struct aspeed_gpio *gpio, aspeed_gpio_irq_handler, gpio); } -static int aspeed_gpio_request(struct gpio_chip *chip, unsigned offset) -{ - return pinctrl_request_gpio(offset); -} - -static void aspeed_gpio_free(struct gpio_chip *chip, unsigned offset) -{ - pinctrl_free_gpio(offset); -} static int __init aspeed_gpio_probe(struct platform_device *pdev) { @@ -402,8 +392,6 @@ static int __init aspeed_gpio_probe(struct platform_device *pdev) gpio->chip.parent = &pdev->dev; gpio->chip.direction_input = aspeed_gpio_dir_in; gpio->chip.direction_output = aspeed_gpio_dir_out; - gpio->chip.request = aspeed_gpio_request; - gpio->chip.free = aspeed_gpio_free; gpio->chip.get = aspeed_gpio_get; gpio->chip.set = aspeed_gpio_set; gpio->chip.to_irq = aspeed_gpio_to_irq; |