diff options
author | Alek Du <alek.du@intel.com> | 2011-01-11 10:55:32 +0000 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-01-11 12:46:15 +0100 |
commit | 718c45bd1aa80c4e23a0ee204c973e3014e94708 (patch) | |
tree | c22c0a0ace46d4d3e30946e805f12c960933d5bb /arch/x86/include | |
parent | 990a32d1e54b3c0f7304bec95fb883404589b3f0 (diff) | |
download | linux-stable-718c45bd1aa80c4e23a0ee204c973e3014e94708.tar.gz linux-stable-718c45bd1aa80c4e23a0ee204c973e3014e94708.tar.bz2 linux-stable-718c45bd1aa80c4e23a0ee204c973e3014e94708.zip |
x86/gpio: Implement x86 gpio_to_irq convert function
We need this for x86 MID platforms where GPIO interrupts are
used. No special magic is needed so the default 1:1 behaviour
will do nicely.
Signed-off-by: Alek Du <alek.du@intel.com>
Signed-off-by: Jacob Pan <jacob.jun.pan@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
LKML-Reference: <20110111105439.24448.69863.stgit@bob.linux.org.uk>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/gpio.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/include/asm/gpio.h b/arch/x86/include/asm/gpio.h index 49dbfdfa50f9..91d915a65259 100644 --- a/arch/x86/include/asm/gpio.h +++ b/arch/x86/include/asm/gpio.h @@ -38,12 +38,9 @@ static inline int gpio_cansleep(unsigned int gpio) return __gpio_cansleep(gpio); } -/* - * Not implemented, yet. - */ static inline int gpio_to_irq(unsigned int gpio) { - return -ENOSYS; + return __gpio_to_irq(gpio); } static inline int irq_to_gpio(unsigned int irq) |