pinctrl: nomadik: fix up typo
authorLinus Walleij <linus.walleij@stericsson.com>
Tue, 12 Jun 2012 10:43:06 +0000 (12:43 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 12 Jun 2012 11:35:24 +0000 (13:35 +0200)
Commit a60b57eddaa8af6c02cf7bbeb58ebf82881f08ac
"drivers/gpio: gpio-nomadik: Add support for irqdomains"
changed GPIO offset calculations to have this form:
(gpio % NMK_GPIO_PER_CHIP) except in this one place for
setting sleep mode, where the conversion was all wrong, and
instead mod:ing the GPIO with the IRQ base which does not
make any sense.

So fix this up so we can use sleepmode.

Reviewed-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>

No differences found