Skip to content

Commit

Permalink
Merge pull request #240 from Sagittarii/gpio_irg_fix
Browse files Browse the repository at this point in the history
fix missing modulo for bit in bank computation, in bcm2708 gpio irq mask
  • Loading branch information
popcornmix committed Mar 2, 2013
2 parents 770459f + bdd8034 commit 2bebfca
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 2bebfca

Please sign in to comment.