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)
commite85bbc19d5a9ad2b48bf8f2fd3277d6fe58f23ce
treeb6ce955e115144293730718e8b1b27df84c79e8c
parentefec381ced2c0416c3765abce076896cf464dc0c
pinctrl: nomadik: fix up typo

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>
drivers/pinctrl/pinctrl-nomadik.c