diff options
Diffstat (limited to 'arch/arm/mach-orion/gpio.c')
-rw-r--r-- | arch/arm/mach-orion/gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-orion/gpio.c b/arch/arm/mach-orion/gpio.c index 0418f5b1ebe7..d5f00c86d616 100644 --- a/arch/arm/mach-orion/gpio.c +++ b/arch/arm/mach-orion/gpio.c @@ -93,7 +93,7 @@ int gpio_get_value(unsigned pin) int val, mask = 1 << pin; if (orion_read(GPIO_IO_CONF) & mask) - val = orion_read(GPIO_DATA_IN); + val = orion_read(GPIO_DATA_IN) ^ orion_read(GPIO_IN_POL); else val = orion_read(GPIO_OUT); |