diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-u300/include/mach/gpio.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/arm/mach-u300/include/mach/gpio.h b/arch/arm/mach-u300/include/mach/gpio.h index 6a3f24d9243..430a0544baf 100644 --- a/arch/arm/mach-u300/include/mach/gpio.h +++ b/arch/arm/mach-u300/include/mach/gpio.h | |||
@@ -44,13 +44,4 @@ static inline unsigned gpio_to_irq(unsigned gpio) | |||
44 | } | 44 | } |
45 | #define gpio_to_irq gpio_to_irq | 45 | #define gpio_to_irq gpio_to_irq |
46 | 46 | ||
47 | static inline unsigned irq_to_gpio(unsigned irq) | ||
48 | { | ||
49 | /* | ||
50 | * FIXME: This is no 1-1 mapping at all, it points to the | ||
51 | * whole block of 8 pins. | ||
52 | */ | ||
53 | return (irq - IRQ_U300_GPIO_PORT0) << 3; | ||
54 | } | ||
55 | |||
56 | #endif /* __MACH_U300_GPIO_H */ | 47 | #endif /* __MACH_U300_GPIO_H */ |