rename patch to make it clear what it is
[openwrt.git] / target / linux / brcm47xx / files / include / asm-mips / mach-bcm947xx / gpio.h
index 4a897d1..e7807ce 100644 (file)
@@ -22,7 +22,8 @@ static inline int gpio_direction_input(unsigned gpio)
 
 static inline int gpio_direction_output(unsigned gpio, int value)
 {
 
 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;
 }
 
        return 0;
 }
 
This page took 0.025513 seconds and 4 git commands to generate.