Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296927
b: refs/heads/master
c: 81b279d
h: refs/heads/master
i:
  296925: 9cb5a02
  296923: 8b478ab
  296919: c181b5c
  296911: dcfd5ec
  296895: ddf26a4
v: v3
  • Loading branch information
Sekhar Nori authored and Grant Likely committed Mar 12, 2012
1 parent 7f426ed commit de85766
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ab2dde9924dd1ddb791fa8b14aa52e1df681e20c
refs/heads/master: 81b279d80a63628e580c71a31d30a8c3b3047ad4
11 changes: 6 additions & 5 deletions trunk/drivers/gpio/gpio-davinci.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,17 +386,18 @@ static int __init davinci_gpio_irq_setup(void)
* IRQ mux conflicts; gpio_irq_type_unbanked() is only for GPIOs.
*/
if (soc_info->gpio_unbanked) {
static struct irq_chip gpio_irqchip_unbanked;
static struct irq_chip_type gpio_unbanked;

/* pass "bank 0" GPIO IRQs to AINTC */
chips[0].chip.to_irq = gpio_to_irq_unbanked;
binten = BIT(0);

/* AINTC handles mask/unmask; GPIO handles triggering */
irq = bank_irq;
gpio_irqchip_unbanked = *irq_get_chip(irq);
gpio_irqchip_unbanked.name = "GPIO-AINTC";
gpio_irqchip_unbanked.irq_set_type = gpio_irq_type_unbanked;
gpio_unbanked = *container_of(irq_get_chip(irq),
struct irq_chip_type, chip);
gpio_unbanked.chip.name = "GPIO-AINTC";
gpio_unbanked.chip.irq_set_type = gpio_irq_type_unbanked;

/* default trigger: both edges */
g = gpio2regs(0);
Expand All @@ -405,7 +406,7 @@ static int __init davinci_gpio_irq_setup(void)

/* set the direct IRQs up to use that irqchip */
for (gpio = 0; gpio < soc_info->gpio_unbanked; gpio++, irq++) {
irq_set_chip(irq, &gpio_irqchip_unbanked);
irq_set_chip(irq, &gpio_unbanked.chip);
irq_set_handler_data(irq, &chips[gpio / 32]);
irq_set_status_flags(irq, IRQ_TYPE_EDGE_BOTH);
}
Expand Down

0 comments on commit de85766

Please sign in to comment.