projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac2e7c9
)
microblaze: support gpio_to_irq()
author
Michal Simek
<monstr@monstr.eu>
Tue, 17 Aug 2010 09:49:24 +0000
(11:49 +0200)
committer
Michal Simek
<monstr@monstr.eu>
Thu, 21 Oct 2010 05:51:41 +0000
(15:51 +1000)
gpiolib returns -ENXIO if struct gpio_chip::to_irq isn't set, so it's
safe to always call.
Based on PPC patch
"powerpc/gpio: support gpio_to_irq()"
78331aded913d76c7ff996a1a0747d54b057460b
Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/include/asm/gpio.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/microblaze/include/asm/gpio.h
b/arch/microblaze/include/asm/gpio.h
index 2345ac354d9be3b865e0477c206b46630bca50a1..2b2c18be71c6512e84ea0007bfb994941f399c7c 100644
(file)
--- a/
arch/microblaze/include/asm/gpio.h
+++ b/
arch/microblaze/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)