diff options
author | Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> | 2011-09-27 18:02:43 +0200 |
---|---|---|
committer | Robert Marklund <robert.marklund@stericsson.com> | 2011-10-05 13:01:34 +0200 |
commit | 579643b2e6ba819700ddb746db0879ba5c25b39a (patch) | |
tree | 34af1894600496c7bb7d09e30a52df42c12d1b98 | |
parent | 1e174b34727259e34c838d488507fa9f5d312615 (diff) |
gpio: ab8500: fix gpio offset bounds for irq mapping
AB8500 gpio numbers start from 1 and not 0 so the offset 0 represents gpio 1.
Fixing cluster bounds accordingly for irq mappings.
Change-Id: Ib1dc72c782011afad61481bb61f8653ed75431d5
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32348
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
-rw-r--r-- | drivers/gpio/gpio-ab8500.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-ab8500.c b/drivers/gpio/gpio-ab8500.c index af1eb4e023a..a58d7f85f96 100644 --- a/drivers/gpio/gpio-ab8500.c +++ b/drivers/gpio/gpio-ab8500.c @@ -175,9 +175,9 @@ static int ab8500_gpio_to_irq(struct gpio_chip *chip, unsigned offset) int start; int end; } clusters[] = { - {.start = 6, .end = 13}, - {.start = 24, .end = 25}, - {.start = 36, .end = 41}, + {.start = 5, .end = 12}, /* GPIO numbers start from 1 */ + {.start = 23, .end = 24}, + {.start = 35, .end = 40}, }; struct ab8500_gpio *ab8500_gpio = to_ab8500_gpio(chip); int base = ab8500_gpio->irq_base; |