Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336362
b: refs/heads/master
c: e93fa3f
h: refs/heads/master
v: v3
  • Loading branch information
Linus Walleij committed Nov 11, 2012
1 parent 097d8ee commit 13431a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 167c1af9443757bb9d27ceff8ba4304302cb0651
refs/heads/master: e93fa3f24353e45b189bae656ba000d0533777a3
13 changes: 1 addition & 12 deletions trunk/drivers/gpio/gpiolib-of.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,19 +254,8 @@ static void of_gpiochip_add_pin_range(struct gpio_chip *chip)
} while (index++);
}

static void of_gpiochip_remove_pin_range(struct gpio_chip *chip)
{
struct gpio_pin_range *pin_range, *tmp;

list_for_each_entry_safe(pin_range, tmp, &chip->pin_ranges, node) {
list_del(&pin_range->node);
pinctrl_remove_gpio_range(pin_range->pctldev,
&pin_range->range);
}
}
#else
static void of_gpiochip_add_pin_range(struct gpio_chip *chip) {}
static void of_gpiochip_remove_pin_range(struct gpio_chip *chip) {}
#endif

void of_gpiochip_add(struct gpio_chip *chip)
Expand All @@ -288,7 +277,7 @@ void of_gpiochip_add(struct gpio_chip *chip)

void of_gpiochip_remove(struct gpio_chip *chip)
{
of_gpiochip_remove_pin_range(chip);
gpiochip_remove_pin_ranges(chip);

if (chip->of_node)
of_node_put(chip->of_node);
Expand Down

0 comments on commit 13431a3

Please sign in to comment.