gpio: pl061: fix IRQ handling for GPIOs >= PL061_GPIO_NR
authorBaruch Siach <baruch@tkos.co.il>
Tue, 30 Jun 2009 18:41:39 +0000 (11:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Jul 2009 01:56:01 +0000 (18:56 -0700)
commit50efacf6711e6c75595afd9b92aa15c1e4f7c79d
tree6b23a034d4a798572f8ef62d18a2531df7a6239d
parent79d7f4ee23d41571d9e4663521b5e6604c55729a
gpio: pl061: fix IRQ handling for GPIOs >= PL061_GPIO_NR

IRQ handling is wrong for any GPIO >= PL061_GPIO_NR.

Fix this by implementing and using a proper .to_irq method.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpio/pl061.c