Skip to content

Commit

Permalink
fix missing modulo for bit in bank computation, in bcm2708 gpio irq mask
Browse files Browse the repository at this point in the history
  • Loading branch information
Sagittarii committed Mar 2, 2013
1 parent 770459f commit bdd8034
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mach-bcm2708/bcm2708_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ static void bcm2708_gpio_irq_mask(struct irq_data *d)
unsigned long rising = readl(gpio->base + GPIOREN(gb));
unsigned long falling = readl(gpio->base + GPIOFEN(gb));

gn = gn % 32;

writel(rising & ~(1 << gn), gpio->base + GPIOREN(gb));
writel(falling & ~(1 << gn), gpio->base + GPIOFEN(gb));
}
Expand Down

0 comments on commit bdd8034

Please sign in to comment.