projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gpio: arizona: Correct check whether the pin is an input
[linux-2.6-microblaze.git]
/
drivers
/
gpio
/
gpio-arizona.c
diff --git
a/drivers/gpio/gpio-arizona.c
b/drivers/gpio/gpio-arizona.c
index
60b3102
..
cd23fd7
100644
(file)
--- a/
drivers/gpio/gpio-arizona.c
+++ b/
drivers/gpio/gpio-arizona.c
@@
-51,7
+51,7
@@
static int arizona_gpio_get(struct gpio_chip *chip, unsigned offset)
return ret;
/* Resume to read actual registers for input pins */
- if (
!(val & ARIZONA_GPN_DIR)
) {
+ if (
val & ARIZONA_GPN_DIR
) {
ret = pm_runtime_get_sync(chip->parent);
if (ret < 0) {
dev_err(chip->parent, "Failed to resume: %d\n", ret);