diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-10-14 05:04:23 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-10-14 05:04:23 +0000 |
commit | a3c1000f0fb7689f0a3b98a66ab751e99fa0c9fb (patch) | |
tree | 0c6874e8d42a0bda1c1dd40d8263ce867cf7af1a | |
parent | 7558f0281fe69414821289db83750fbec3e36d3f (diff) | |
download | upstream-a3c1000f0fb7689f0a3b98a66ab751e99fa0c9fb.tar.gz upstream-a3c1000f0fb7689f0a3b98a66ab751e99fa0c9fb.tar.bz2 upstream-a3c1000f0fb7689f0a3b98a66ab751e99fa0c9fb.zip |
fix i2c-gpio
SVN-Revision: 9309
-rw-r--r-- | target/linux/brcm47xx/files/include/asm-mips/mach-bcm947xx/gpio.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/brcm47xx/files/include/asm-mips/mach-bcm947xx/gpio.h b/target/linux/brcm47xx/files/include/asm-mips/mach-bcm947xx/gpio.h index 9a67e8e764..499df4ef18 100644 --- a/target/linux/brcm47xx/files/include/asm-mips/mach-bcm947xx/gpio.h +++ b/target/linux/brcm47xx/files/include/asm-mips/mach-bcm947xx/gpio.h @@ -27,12 +27,12 @@ static inline int gpio_direction_input(unsigned gpio) return 0; } -static inline int gpio_direction_output(unsigned gpio) +static inline int gpio_direction_output(unsigned gpio, int value) { if (ssb.chipco.dev) - ssb_chipco_gpio_outen(&ssb.chipco, 1 << gpio, 1 << gpio); + ssb_chipco_gpio_outen(&ssb.chipco, 1 << gpio, value << gpio); else if (ssb.extif.dev) - ssb_extif_gpio_outen(&ssb.extif, 1 << gpio, 1 << gpio); + ssb_extif_gpio_outen(&ssb.extif, 1 << gpio, value << gpio); else return -EINVAL; |