Skip to content

Commit

Permalink
Revert "gpio-aspeed: Add offset to base on pinctrl_{request,free}_gpi…
Browse files Browse the repository at this point in the history
…o()"

This reverts commit 6e04897.

Signed-off-by: Joel Stanley <joel@jms.id.au>
  • Loading branch information
Joel Stanley committed Jul 21, 2016
1 parent 8515347 commit 28731bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpio/gpio-aspeed.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,12 +369,12 @@ static void aspeed_gpio_setup_irqs(struct aspeed_gpio *gpio,

static int aspeed_gpio_request(struct gpio_chip *chip, unsigned offset)
{
return pinctrl_request_gpio(chip->base + offset);
return pinctrl_request_gpio(offset);
}

static void aspeed_gpio_free(struct gpio_chip *chip, unsigned offset)
{
pinctrl_free_gpio(chip->base + offset);
pinctrl_free_gpio(offset);
}

static int __init aspeed_gpio_probe(struct platform_device *pdev)
Expand Down

0 comments on commit 28731bb

Please sign in to comment.