Skip to content

Commit

Permalink
pinctrl: exynos: Fix typos in gpio/wkup _irq_mask
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tomasz Figa authored and Kukjin Kim committed Sep 20, 2012
1 parent ee2f573 commit 3da23f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/pinctrl/pinctrl-exynos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

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

Expand Down

0 comments on commit 3da23f2

Please sign in to comment.