DORMANTno replies

[PATCH 19/19] mach-sa1100: delete irq_to_gpio() function

From: Linus Walleij <hidden>
Date: 2011-08-10 12:19:09
Also in: lkml
Subsystem: arm port, the rest · Maintainers: Russell King, Linus Torvalds

From: Linus Walleij <redacted>

This function is not used in the assabet build, and on the whole the
call is hard to consolidate so get rid of it from this machine.

Cc: Russell King <redacted>
Signed-off-by: Linus Walleij <redacted>
---
 arch/arm/mach-sa1100/include/mach/gpio.h |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-sa1100/include/mach/gpio.h b/arch/arm/mach-sa1100/include/mach/gpio.h
index ab45b43..7036318 100644
--- a/arch/arm/mach-sa1100/include/mach/gpio.h
+++ b/arch/arm/mach-sa1100/include/mach/gpio.h
@@ -53,7 +53,5 @@ static inline void gpio_set_value(unsigned gpio, int value)
 
 #define gpio_to_irq(gpio)	((gpio < 11) ? (IRQ_GPIO0 + gpio) : \
 					(IRQ_GPIO11 - 11 + gpio))
-#define irq_to_gpio(irq)	((irq < IRQ_GPIO11_27) ? (irq - IRQ_GPIO0) : \
-					(irq - IRQ_GPIO11 + 11))
 
 #endif
-- 
1.7.3.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help