projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
527e931
)
gpio: ath79: Fix the logic to clear offset bit of AR71XX_GPIO_REG_OE register
author
Axel Lin
<axel.lin@ingics.com>
Tue, 8 Dec 2015 15:01:07 +0000
(23:01 +0800)
committer
Linus Walleij
<linus.walleij@linaro.org>
Fri, 11 Dec 2015 18:12:57 +0000
(19:12 +0100)
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Alban Bedel <albeu@free.fr>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-ath79.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpio-ath79.c
b/drivers/gpio/gpio-ath79.c
index e5827a56ff3b5eda451202849c41b2d8b0e54f31..5eaea8b812cf39515c3e7132d90d4f3d7e0fba17 100644
(file)
--- a/
drivers/gpio/gpio-ath79.c
+++ b/
drivers/gpio/gpio-ath79.c
@@
-113,7
+113,7
@@
static int ar934x_gpio_direction_output(struct gpio_chip *chip, unsigned offset,
__raw_writel(BIT(offset), ctrl->base + AR71XX_GPIO_REG_CLEAR);
__raw_writel(
- __raw_readl(ctrl->base + AR71XX_GPIO_REG_OE) & BIT(offset),
+ __raw_readl(ctrl->base + AR71XX_GPIO_REG_OE) &
~
BIT(offset),
ctrl->base + AR71XX_GPIO_REG_OE);
spin_unlock_irqrestore(&ctrl->lock, flags);