Browse Source

ARM: tegra: Fix typo in TEGRA_IRQ_TO_GPIO

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Colin Cross <ccross@android.com>
Stephen Warren 14 years ago
parent
commit
e19e881fcb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/arm/mach-tegra/include/mach/gpio.h

+ 1 - 1
arch/arm/mach-tegra/include/mach/gpio.h

@@ -31,7 +31,7 @@
 #define gpio_cansleep		__gpio_cansleep
 #define gpio_cansleep		__gpio_cansleep
 
 
 #define TEGRA_GPIO_TO_IRQ(gpio) (INT_GPIO_BASE + (gpio))
 #define TEGRA_GPIO_TO_IRQ(gpio) (INT_GPIO_BASE + (gpio))
-#define TEGRA_IRQ_TO_GPIO(irq) ((gpio) - INT_GPIO_BASE)
+#define TEGRA_IRQ_TO_GPIO(irq) ((irq) - INT_GPIO_BASE)
 
 
 static inline int gpio_to_irq(unsigned int gpio)
 static inline int gpio_to_irq(unsigned int gpio)
 {
 {