Commit 5c97d146 authored by Axel Lin's avatar Axel Lin Committed by Linus Walleij

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
Signed-off-by: default avatarAxel Lin <>
Tested-by: default avatarLars Poeschel <>
Acked-by: default avatarLars Poeschel <>
Signed-off-by: Linus Walleij's avatarLinus Walleij <>
parent 25f27db4
......@@ -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);
gpio->gpiob_val &= ~(1 << offset);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment