ARM: at91/gpio: add .to_irq gpio_chip handler
authorNicolas Ferre <nicolas.ferre@atmel.com>
Sat, 11 Feb 2012 14:56:01 +0000 (15:56 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 1 Mar 2012 12:29:02 +0000 (13:29 +0100)
commitb134ce854ad63421bd5c7d34623a1337d525a435
tree41a74511132c744a32e0fb02b4e9da5510cade3d
parent5bc067b71928d3f470d051847aefa55724fd0c95
ARM: at91/gpio: add .to_irq gpio_chip handler

Replace the gpio_to_irq() macro by a plain gpiolib .to_irq() handler.
This call is using the irqdomain to translate hardware to Linux
IRQ numbers.
The irq_to_gpio() macro is completely removed.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
arch/arm/mach-at91/gpio.c
arch/arm/mach-at91/include/mach/gpio.h