From be49f32bfc04056db64a6c6b6d830788484a243a Mon Sep 17 00:00:00 2001 From: Stephen Warren Date: Tue, 23 Aug 2011 00:39:56 +0100 Subject: [PATCH] --- yaml --- r: 269416 b: refs/heads/master c: 438a99c078b1bc3c9aebd92e7928f2477311d3e5 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/gpio/gpio-tegra.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 19dfcebdf533..eb3e6416cdee 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 470080015c1f8bbd15ba1486d5c4bd8a3e7fa79a +refs/heads/master: 438a99c078b1bc3c9aebd92e7928f2477311d3e5 diff --git a/trunk/drivers/gpio/gpio-tegra.c b/trunk/drivers/gpio/gpio-tegra.c index ecade29d79e8..df64536464f0 100644 --- a/trunk/drivers/gpio/gpio-tegra.c +++ b/trunk/drivers/gpio/gpio-tegra.c @@ -134,7 +134,10 @@ static int tegra_gpio_direction_output(struct gpio_chip *chip, unsigned offset, return 0; } - +static int tegra_gpio_to_irq(struct gpio_chip *chip, unsigned offset) +{ + return TEGRA_GPIO_TO_IRQ(offset); +} static struct gpio_chip tegra_gpio_chip = { .label = "tegra-gpio", @@ -142,6 +145,7 @@ static struct gpio_chip tegra_gpio_chip = { .get = tegra_gpio_get, .direction_output = tegra_gpio_direction_output, .set = tegra_gpio_set, + .to_irq = tegra_gpio_to_irq, .base = 0, .ngpio = TEGRA_NR_GPIOS, };