From: Alexander Shiyan Date: Wed, 24 Oct 2012 06:58:57 +0000 (+0400) Subject: GPIO: clps711x: Fix return value for gpio_clps711x_get X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=41b3996e3b6825bd3a0624d62fde53fbad092ed0;p=openwrt%2Fstaging%2Fblogic.git GPIO: clps711x: Fix return value for gpio_clps711x_get Signed-off-by: Alexander Shiyan Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-clps711x.c b/drivers/gpio/gpio-clps711x.c index ea21822b3de9..0753b3a9a34d 100644 --- a/drivers/gpio/gpio-clps711x.c +++ b/drivers/gpio/gpio-clps711x.c @@ -47,7 +47,7 @@ static void __iomem *clps711x_pdirs[] = { static int gpio_clps711x_get(struct gpio_chip *chip, unsigned offset) { - return !!readb(clps711x_port(chip)) & (1 << offset); + return !!(readb(clps711x_port(chip)) & (1 << offset)); } static void gpio_clps711x_set(struct gpio_chip *chip, unsigned offset,