diff options
author | Tomasz Figa <t.figa@samsung.com> | 2012-09-20 18:33:52 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-09-20 18:33:52 -0400 |
commit | 3da23f27a0f6a5e44a01813a1c0a662011e5c221 (patch) | |
tree | 2e936687ccab9196f5ea1b03ee4726829fdc10e6 /drivers/pinctrl/pinctrl-exynos.c | |
parent | ee2f573c4206ff3c4dbff2296c8d383d045c80a2 (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/pinctrl-exynos.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-exynos.c | 4 |
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) | |||
58 | unsigned long mask; | 58 | unsigned long mask; |
59 | 59 | ||
60 | mask = readl(d->virt_base + reg_mask); | 60 | mask = readl(d->virt_base + reg_mask); |
61 | mask |= ~(1 << edata->pin); | 61 | mask |= 1 << edata->pin; |
62 | writel(mask, d->virt_base + reg_mask); | 62 | writel(mask, d->virt_base + reg_mask); |
63 | } | 63 | } |
64 | 64 | ||
@@ -290,7 +290,7 @@ static void exynos_wkup_irq_mask(struct irq_data *irqd) | |||
290 | unsigned long mask; | 290 | unsigned long mask; |
291 | 291 | ||
292 | mask = readl(d->virt_base + reg_mask); | 292 | mask = readl(d->virt_base + reg_mask); |
293 | mask &= ~(1 << pin); | 293 | mask |= 1 << pin; |
294 | writel(mask, d->virt_base + reg_mask); | 294 | writel(mask, d->virt_base + reg_mask); |
295 | } | 295 | } |
296 | 296 | ||