From 323d4460bf52d332bffd17595c8e67ca55748aaa Mon Sep 17 00:00:00 2001 From: nbd Date: Sun, 14 Oct 2007 05:04:23 +0000 Subject: fix i2c-gpio git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9309 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/brcm47xx/files/include/asm-mips/mach-bcm947xx/gpio.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'target/linux/brcm47xx') 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 9a67e8e76..499df4ef1 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; -- cgit v1.2.3