diff options
Diffstat (limited to 'drivers/gpio/gpio-omap.c')
-rw-r--r-- | drivers/gpio/gpio-omap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 312d45d..26231e2 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -1410,9 +1410,9 @@ void omap2_gpio_set_edge_wakeup(void) * expected to produce wakeup from low power. * even if they are set for level detection only. */ - __raw_writel((bank->context.edge_falling | level_low) & wkup_status, + __raw_writel(bank->context.edge_falling | (level_low & wkup_status), (bank->base + bank->regs->fallingdetect)); - __raw_writel((bank->context.edge_rising | level_high) & wkup_status, + __raw_writel(bank->context.edge_rising | (level_high & wkup_status), (bank->base + bank->regs->risingdetect)); } |