summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/gpio.h
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-12-01 21:48:13 +0100
committerKumar Gala <galak@kernel.crashing.org>2009-12-10 20:08:15 -0600
commit78331aded913d76c7ff996a1a0747d54b057460b (patch)
treeb778b3b430539cdc925b65a9e2a5663529ade4e1 /arch/powerpc/include/asm/gpio.h
parent1cad2c874162d84bf7b2d31344a08b9cb724d138 (diff)
downloadblackbird-op-linux-78331aded913d76c7ff996a1a0747d54b057460b.tar.gz
blackbird-op-linux-78331aded913d76c7ff996a1a0747d54b057460b.zip
powerpc/gpio: support gpio_to_irq()
gpiolib returns -ENXIO if struct gpio_chip::to_irq isn't set, so it's safe to always call. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/gpio.h')
-rw-r--r--arch/powerpc/include/asm/gpio.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/include/asm/gpio.h b/arch/powerpc/include/asm/gpio.h
index ea04632399d8..38762edb5e58 100644
--- a/arch/powerpc/include/asm/gpio.h
+++ b/arch/powerpc/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)
OpenPOWER on IntegriCloud