Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362985
b: refs/heads/master
c: 22ce446
h: refs/heads/master
i:
  362983: ce5259d
v: v3
  • Loading branch information
Axel Lin authored and Linus Walleij committed Mar 27, 2013
1 parent 360049f commit 2fb87a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8b0ef2580f7ffdd0018332ab9c085729afa59f75
refs/heads/master: 22ce4464fad1c0a90ed5c9a745a1fceabf69283d
8 changes: 8 additions & 0 deletions trunk/drivers/gpio/gpio-pl061.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ static int pl061_gpio_request(struct gpio_chip *chip, unsigned offset)
return pinctrl_request_gpio(gpio);
}

static void pl061_gpio_free(struct gpio_chip *chip, unsigned offset)
{
int gpio = chip->base + offset;

pinctrl_free_gpio(gpio);
}

static int pl061_direction_input(struct gpio_chip *gc, unsigned offset)
{
struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc);
Expand Down Expand Up @@ -287,6 +294,7 @@ static int pl061_probe(struct amba_device *adev, const struct amba_id *id)
spin_lock_init(&chip->lock);

chip->gc.request = pl061_gpio_request;
chip->gc.free = pl061_gpio_free;
chip->gc.direction_input = pl061_direction_input;
chip->gc.direction_output = pl061_direction_output;
chip->gc.get = pl061_get_value;
Expand Down

0 comments on commit 2fb87a8

Please sign in to comment.