diff options
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-sa1100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-sa1100.c b/drivers/gpio/gpio-sa1100.c index a90be34e4d5c..5b5d3c7bb84e 100644 --- a/drivers/gpio/gpio-sa1100.c +++ b/drivers/gpio/gpio-sa1100.c | |||
@@ -50,7 +50,7 @@ static int sa1100_direction_output(struct gpio_chip *chip, unsigned offset, int | |||
50 | 50 | ||
51 | static int sa1100_to_irq(struct gpio_chip *chip, unsigned offset) | 51 | static int sa1100_to_irq(struct gpio_chip *chip, unsigned offset) |
52 | { | 52 | { |
53 | return offset < 11 ? (IRQ_GPIO0 + offset) : (IRQ_GPIO11 - 11 + offset); | 53 | return IRQ_GPIO0 + offset; |
54 | } | 54 | } |
55 | 55 | ||
56 | static struct gpio_chip sa1100_gpio_chip = { | 56 | static struct gpio_chip sa1100_gpio_chip = { |