summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-viperboard.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-03-05 16:21:56 +0400
committerLinus Walleij <linus.walleij@linaro.org>2013-03-27 12:13:06 +0400
commit5c97d146f20bb6a82a621009c0c6f368e40a905f (patch)
treeb8d4a88b0f36172c60db73255eef73b82aa1adf9 /drivers/gpio/gpio-viperboard.c
parent25f27db48e9d741cf3494f36e287d3c34a0fdba3 (diff)
downloadlinux-5c97d146f20bb6a82a621009c0c6f368e40a905f.tar.xz
gpio: viperboard: Remove duplicate code to set gpio->gpiob_val
Set it once is enough, and it's done in vprbrd_gpiob_set() which is called by vprbrd_gpiob_direction_output(). Signed-off-by: Axel Lin <axel.lin@ingics.com> Tested-by: Lars Poeschel <poeschel@lemonage.de> Acked-by: Lars Poeschel <poeschel@lemonage.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-viperboard.c')
-rw-r--r--drivers/gpio/gpio-viperboard.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpio/gpio-viperboard.c b/drivers/gpio/gpio-viperboard.c
index 59d72391de26..095ab14cea4d 100644
--- a/drivers/gpio/gpio-viperboard.c
+++ b/drivers/gpio/gpio-viperboard.c
@@ -380,10 +380,6 @@ static int vprbrd_gpiob_direction_output(struct gpio_chip *chip,
struct vprbrd *vb = gpio->vb;
gpio->gpiob_out |= (1 << offset);
- if (value)
- gpio->gpiob_val |= (1 << offset);
- else
- gpio->gpiob_val &= ~(1 << offset);
mutex_lock(&vb->lock);