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>

authored by Alek Du and committed by Ingo Molnar 718c45bd 990a32d1

+1 -4
+1 -4
arch/x86/include/asm/gpio.h
··· 38 38 return __gpio_cansleep(gpio); 39 39 } 40 40 41 - /* 42 - * Not implemented, yet. 43 - */ 44 41 static inline int gpio_to_irq(unsigned int gpio) 45 42 { 46 - return -ENOSYS; 43 + return __gpio_to_irq(gpio); 47 44 } 48 45 49 46 static inline int irq_to_gpio(unsigned int irq)