summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-03-05 20:21:56 +0800
committerLinus Walleij <linus.walleij@linaro.org>2013-03-27 09:13:06 +0100
commit5c97d146f20bb6a82a621009c0c6f368e40a905f (patch)
treeb8d4a88b0f36172c60db73255eef73b82aa1adf9 /drivers/gpio
parent25f27db48e9d741cf3494f36e287d3c34a0fdba3 (diff)
downloadlinux-5c97d146f20bb6a82a621009c0c6f368e40a905f.tar.gz
linux-5c97d146f20bb6a82a621009c0c6f368e40a905f.tar.bz2
linux-5c97d146f20bb6a82a621009c0c6f368e40a905f.zip
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')
-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);