]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8d787569e99cd10e90ed65c32e35a4d43a29f5a6
treeb6ce955e115144293730718e8b1b27df84c79e8c
parent452bb726bcf6feb3e4c21f2e34062c13da03b02c
pinctrl: nomadik: fix up typo

Commit c1c6fa50e7a636891ddb0d5fda1fbb4e5df30c60
"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