Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87277
b: refs/heads/master
c: 37aca70
h: refs/heads/master
i:
  87275: 5da9915
v: v3
  • Loading branch information
David Brownell authored and Russell King committed Mar 6, 2008
1 parent 94c8815 commit 1c5cba7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b24061fadc2b996fd38baaf01986eac666d0c61b
refs/heads/master: 37aca70c626ce8f4e5848de2d4892b5ed74a6875
7 changes: 7 additions & 0 deletions trunk/arch/arm/mach-at91/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,11 @@ postcore_initcall(at91_gpio_debugfs_init);

/*--------------------------------------------------------------------------*/

/* This lock class tells lockdep that GPIO irqs are in a different
* category than their parents, so it won't report false recursion.
*/
static struct lock_class_key gpio_lock_class;

/*
* Called from the processor-specific init to enable GPIO interrupt support.
*/
Expand All @@ -510,6 +515,8 @@ void __init at91_gpio_irq_setup(void)
__raw_writel(~0, this->regbase + PIO_IDR);

for (i = 0, pin = this->chipbase; i < 32; i++, pin++) {
lockdep_set_class(&irq_desc[pin].lock, &gpio_lock_class);

/*
* Can use the "simple" and not "edge" handler since it's
* shorter, and the AIC handles interrupts sanely.
Expand Down

0 comments on commit 1c5cba7

Please sign in to comment.