]> git.baikalelectronics.ru Git - kernel.git/commit
GPIO: sa1100: implement proper gpiolib gpio_to_irq conversion
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 18 Dec 2011 18:24:57 +0000 (18:24 +0000)
committerGrant Likely <grant.likely@secretlab.ca>
Sat, 14 Jan 2012 05:25:23 +0000 (22:25 -0700)
commitd43b9c0a8d39e574e3433509686d217f02c35b2e
tree8413c8cf3d8b21bfed24f09726f5c07d87be9c40
parentfd0f579cb13c62201b53d58b453cce3fe2ac184e
GPIO: sa1100: implement proper gpiolib gpio_to_irq conversion

The existing gpio_to_irq() implementation on sa1100 only translates
validly for internal GPIOs.  Since this sub-arch enables GPIOLIB
support, this results in buggy translations for non-internal GPIOs.

Get rid of the private gpio_to_irq() implementation, replacing it
with the .to_irq method in the sa1100 gpio chip instead.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/arm/mach-sa1100/include/mach/gpio.h
drivers/gpio/gpio-sa1100.c