x86/gpio: Implement x86 gpio_to_irq convert function
authorAlek Du <alek.du@intel.com>
Tue, 11 Jan 2011 10:55:32 +0000 (10:55 +0000)
committerIngo Molnar <mingo@elte.hu>
Tue, 11 Jan 2011 11:46:15 +0000 (12:46 +0100)
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>
arch/x86/include/asm/gpio.h

index 49dbfdfa50f9f3a80113c264b7c8fe0439746dc0..91d915a6525995e79c306519b43e1812d154a09b 100644 (file)
@@ -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)