summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2016-05-24 14:39:47 +0200
committerLinus Walleij <linus.walleij@linaro.org>2016-05-30 09:42:37 +0200
commit6b1a7c9ecde434adb515e1c9a89a579a6feb3070 (patch)
tree2190c328880c79ad3db35a3199a89b2268a52165 /drivers
parentLinux 4.7-rc1 (diff)
downloadlinux-6b1a7c9ecde434adb515e1c9a89a579a6feb3070.tar.xz
linux-6b1a7c9ecde434adb515e1c9a89a579a6feb3070.zip
pinctrl: nomadik: fix inversion of gpio direction
The input/output directions were inversed on the GPIO direction read function. Loose a ! and it is correct. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pinctrl/nomadik/pinctrl-nomadik.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/nomadik/pinctrl-nomadik.c b/drivers/pinctrl/nomadik/pinctrl-nomadik.c
index ccbfc325c778..38faceff2f08 100644
--- a/drivers/pinctrl/nomadik/pinctrl-nomadik.c
+++ b/drivers/pinctrl/nomadik/pinctrl-nomadik.c
@@ -854,7 +854,7 @@ static int nmk_gpio_get_dir(struct gpio_chip *chip, unsigned offset)
clk_enable(nmk_chip->clk);
- dir = !!(readl(nmk_chip->addr + NMK_GPIO_DIR) & BIT(offset));
+ dir = !(readl(nmk_chip->addr + NMK_GPIO_DIR) & BIT(offset));
clk_disable(nmk_chip->clk);