Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231106
b: refs/heads/master
c: 1a9b587
h: refs/heads/master
v: v3
  • Loading branch information
Felipe Balbi authored and Kevin Hilman committed Jan 7, 2011
1 parent 1a740a8 commit 76232eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: b97c374d8a44292c601146783aac61f3d5d1f46f
refs/heads/master: 1a9b5878671d417a856fdafe971306c99297b7f0
10 changes: 7 additions & 3 deletions trunk/arch/arm/plat-omap/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -756,8 +756,10 @@ static int gpio_irq_type(unsigned irq, unsigned type)
spin_lock_irqsave(&bank->lock, flags);
retval = _set_gpio_triggering(bank, get_gpio_index(gpio), type);
if (retval == 0) {
irq_desc[irq].status &= ~IRQ_TYPE_SENSE_MASK;
irq_desc[irq].status |= type;
struct irq_desc *d = irq_to_desc(irq);

d->status &= ~IRQ_TYPE_SENSE_MASK;
d->status |= type;
}
spin_unlock_irqrestore(&bank->lock, flags);

Expand Down Expand Up @@ -1671,7 +1673,9 @@ static void __init omap_gpio_chip_init(struct gpio_bank *bank)

for (j = bank->virtual_irq_start;
j < bank->virtual_irq_start + bank_width; j++) {
lockdep_set_class(&irq_desc[j].lock, &gpio_lock_class);
struct irq_desc *d = irq_to_desc(j);

lockdep_set_class(&d->lock, &gpio_lock_class);
set_irq_chip_data(j, bank);
if (bank_is_mpuio(bank))
set_irq_chip(j, &mpuio_irq_chip);
Expand Down

0 comments on commit 76232eb

Please sign in to comment.