projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cad2c8
)
powerpc/gpio: support gpio_to_irq()
author
Peter Korsgaard
<jacmet@sunsite.dk>
Tue, 1 Dec 2009 20:48:13 +0000
(21:48 +0100)
committer
Kumar Gala
<galak@kernel.crashing.org>
Fri, 11 Dec 2009 02:08:15 +0000
(20:08 -0600)
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>
arch/powerpc/include/asm/gpio.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/include/asm/gpio.h
b/arch/powerpc/include/asm/gpio.h
index ea04632399d8d25f8cf5e4f4720c28bd7dbbaef9..38762edb5e5804e714a81aa223b6ce8d338336ca 100644
(file)
--- 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)