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>
This commit is contained in:
Tomasz Figa 2012-09-21 07:33:52 +09:00 committed by Kukjin Kim
parent ee2f573c42
commit 3da23f27a0

View File

@ -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);
}