pinctrl: at91: fix get_pullup/down function return
authorBoris BREZILLON <b.brezillon@overkiz.com>
Tue, 27 Aug 2013 13:19:21 +0000 (15:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Sep 2013 00:21:44 +0000 (17:21 -0700)
commit67f6e3082f2c3b1d94da9adba7a14e5b0b3e2c26
tree9c2b6f125d564944e9baa9439682f1f1177d931a
parent071687718992ce8045e70972a17e7ae340743a7c
pinctrl: at91: fix get_pullup/down function return

commit 05d3534a321d7fe4524b3b83bb20318282f3ec2c upstream.

In PIO_PUSR and PIO_PPDSR register if a given bit is set 1 this means the
pullup/down for this pin (pin is represented as a bit position) is
disabled.

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/pinctrl-at91.c