Skip to content

Commit

Permalink
Revert "HACK: gpio-aspeed: Request pins via pinctrl"
Browse files Browse the repository at this point in the history
This reverts commit 3ab5ce1.

Signed-off-by: Joel Stanley <joel@jms.id.au>
  • Loading branch information
Joel Stanley committed Jul 21, 2016
1 parent 28731bb commit 2d15238
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions drivers/gpio/gpio-aspeed.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
{
Expand All @@ -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;
Expand Down

0 comments on commit 2d15238

Please sign in to comment.