diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-03-05 07:21:56 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-03-27 04:13:06 -0400 |
commit | 5c97d146f20bb6a82a621009c0c6f368e40a905f (patch) | |
tree | b8d4a88b0f36172c60db73255eef73b82aa1adf9 | |
parent | 25f27db48e9d741cf3494f36e287d3c34a0fdba3 (diff) |
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>
-rw-r--r-- | drivers/gpio/gpio-viperboard.c | 4 |
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, | |||
380 | struct vprbrd *vb = gpio->vb; | 380 | struct vprbrd *vb = gpio->vb; |
381 | 381 | ||
382 | gpio->gpiob_out |= (1 << offset); | 382 | gpio->gpiob_out |= (1 << offset); |
383 | if (value) | ||
384 | gpio->gpiob_val |= (1 << offset); | ||
385 | else | ||
386 | gpio->gpiob_val &= ~(1 << offset); | ||
387 | 383 | ||
388 | mutex_lock(&vb->lock); | 384 | mutex_lock(&vb->lock); |
389 | 385 | ||