Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296913
b: refs/heads/master
c: e4e449e
h: refs/heads/master
i:
  296911: dcfd5ec
v: v3
  • Loading branch information
Mark Brown authored and Grant Likely committed Mar 5, 2012
1 parent 0c0288b commit e4c64c6
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 25553ff0756c59b617af6bdd280c94e943164184
refs/heads/master: e4e449e82871c53ef3b22bd3a50fceabc0638926
2 changes: 2 additions & 0 deletions trunk/drivers/gpio/gpiolib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1581,6 +1581,7 @@ int __gpio_get_value(unsigned gpio)
int value;

chip = gpio_to_chip(gpio);
/* Should be using gpio_get_value_cansleep() */
WARN_ON(chip->can_sleep);
value = chip->get ? chip->get(chip, gpio - chip->base) : 0;
trace_gpio_value(gpio, 1, value);
Expand Down Expand Up @@ -1653,6 +1654,7 @@ void __gpio_set_value(unsigned gpio, int value)
struct gpio_chip *chip;

chip = gpio_to_chip(gpio);
/* Should be using gpio_set_value_cansleep() */
WARN_ON(chip->can_sleep);
trace_gpio_value(gpio, 0, value);
if (test_bit(FLAG_OPEN_DRAIN, &gpio_desc[gpio].flags))
Expand Down

0 comments on commit e4c64c6

Please sign in to comment.