summaryrefslogtreecommitdiff
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2012-09-21 07:33:52 +0900
committerKukjin Kim <kgene.kim@samsung.com>2012-09-21 07:33:52 +0900
commit3da23f27a0f6a5e44a01813a1c0a662011e5c221 (patch)
tree2e936687ccab9196f5ea1b03ee4726829fdc10e6 /drivers/pinctrl
parentee2f573c4206ff3c4dbff2296c8d383d045c80a2 (diff)
pinctrl: exynos: Fix typos in gpio/wkup _irq_mask
To mask GPIO/wakeup IRQ, the corresponding bit in mask register has to be set. Signed-off-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/pinctrl-exynos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/pinctrl-exynos.c b/drivers/pinctrl/pinctrl-exynos.c
index c2fa85f18764..46cd637f4804 100644
--- a/drivers/pinctrl/pinctrl-exynos.c
+++ b/drivers/pinctrl/pinctrl-exynos.c
@@ -58,7 +58,7 @@ static void exynos_gpio_irq_mask(struct irq_data *irqd)
unsigned long mask;
mask = readl(d->virt_base + reg_mask);
- mask |= ~(1 << edata->pin);
+ mask |= 1 << edata->pin;
writel(mask, d->virt_base + reg_mask);
}
@@ -290,7 +290,7 @@ static void exynos_wkup_irq_mask(struct irq_data *irqd)
unsigned long mask;
mask = readl(d->virt_base + reg_mask);
- mask &= ~(1 << pin);
+ mask |= 1 << pin;
writel(mask, d->virt_base + reg_mask);
}