diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2010-03-12 13:22:29 +0530 |
---|---|---|
committer | Gary King <gking@nvidia.com> | 2010-03-12 13:36:17 -0800 |
commit | ede4eb643d23adbb79e9434905a06f88a3b5fe81 (patch) | |
tree | 7fb0e3a9deacde7488076ecbea4d1b8757492abc | |
parent | 966ebeac465b1db86989ca099053c2d6078c52cd (diff) |
gpio: using proper API for getting the irq data
To get the ird data for the gpio pin irq, it should use the
get_irq_chip_data() in place of get_irq_data(). This is because
at the time of registration, the irq data is added as the chip irq
data.
Tested on whistler.
Change-Id: Ic80d0f05fa5490ee2ca876a750daa27135e681c9
Reviewed-on: http://git-master/r/849
Reviewed-by: Gary King <gking@nvidia.com>
Tested-by: Gary King <gking@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/gpio.c b/arch/arm/mach-tegra/gpio.c index 43f7cdfca9a1..9448cad678b7 100644 --- a/arch/arm/mach-tegra/gpio.c +++ b/arch/arm/mach-tegra/gpio.c @@ -159,7 +159,7 @@ static void tegra_gpio_irq_unmask(unsigned int irq) static int tegra_gpio_irq_set_type(unsigned int irq, unsigned int type) { int gpio = irq - INT_GPIO_BASE; - struct tegra_gpio_bank *bank = get_irq_data(irq); + struct tegra_gpio_bank *bank = get_irq_chip_data(irq); int port = GPIO_PORT(gpio); int lvl_type; int val; |