Skip to content
Snippets Groups Projects
Commit d3cf33a4 authored by Michael Büsch's avatar Michael Büsch
Browse files

bcm47xx: Fix GPIO data direction output bit assignment

SVN-Revision: 10605
parent c8ffd446
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,8 @@ static inline int gpio_direction_input(unsigned gpio)
static inline int gpio_direction_output(unsigned gpio, int value)
{
ssb_gpio_outen(&ssb, 1 << gpio, value << gpio);
ssb_gpio_out(&ssb, 1 << gpio, (value ? 1 << gpio : 0));
ssb_gpio_outen(&ssb, 1 << gpio, 1 << gpio);
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment