bcm47xx: Fix GPIO data direction output bit assignment

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10605 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Michael Büsch 2008-03-15 20:52:02 +00:00
parent 6c749c6d32
commit 45c39a1e6d
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}