aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpio/gpio-tegra.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c
index ecade29d79e8..df64536464f0 100644
--- a/drivers/gpio/gpio-tegra.c
+++ b/drivers/gpio/gpio-tegra.c
@@ -134,7 +134,10 @@ static int tegra_gpio_direction_output(struct gpio_chip *chip, unsigned offset,
134 return 0; 134 return 0;
135} 135}
136 136
137 137static int tegra_gpio_to_irq(struct gpio_chip *chip, unsigned offset)
138{
139 return TEGRA_GPIO_TO_IRQ(offset);
140}
138 141
139static struct gpio_chip tegra_gpio_chip = { 142static struct gpio_chip tegra_gpio_chip = {
140 .label = "tegra-gpio", 143 .label = "tegra-gpio",
@@ -142,6 +145,7 @@ static struct gpio_chip tegra_gpio_chip = {
142 .get = tegra_gpio_get, 145 .get = tegra_gpio_get,
143 .direction_output = tegra_gpio_direction_output, 146 .direction_output = tegra_gpio_direction_output,
144 .set = tegra_gpio_set, 147 .set = tegra_gpio_set,
148 .to_irq = tegra_gpio_to_irq,
145 .base = 0, 149 .base = 0,
146 .ngpio = TEGRA_NR_GPIOS, 150 .ngpio = TEGRA_NR_GPIOS,
147}; 151};