diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 18:23:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 18:23:54 -0400 |
commit | 6969a434737dd82f7343e3fcd529bc320508d9fc (patch) | |
tree | 13d9982aa8fc5f5448ea678de2f1850d63802e79 /arch/mips/bcm63xx/gpio.c | |
parent | 0fc377bd648d1935ea34665239e3f0a274b71698 (diff) | |
parent | 0453fb3c528c5eb3483441a466b24a4cb409eec5 (diff) |
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: (25 commits)
MIPS: Use GCC __builtin_prefetch() to implement prefetch().
MIPS: Octeon: Serial port fixes for OCTEON simulator.
MIPS: Octeon: Get rid of early serial.
MIPS: AR7: prevent race between clock initialization and devices registration
MIPS: AR7: use ar7_has_high_vlynq() to determine watchdog base address
MIPS: BCM63xx: Avoid namespace clash on GPIO_DIR_{IN,OUT}
MIPS: MTX-1: Update defconfig
MIPS: BCM47xx: Update defconfig
MIPS: RB532: Update defconfig
MIPS: AR7: Update defconfig
RTC: rtc-cmos: Fix binary mode support
MIPS: Oprofile: Loongson: Cleanup the comments
MIPS: Oprofile: Loongson: Cleanup of the macros
MIPS: Oprofile: Loongson: Remove unused variable from loongson2_cpu_setup()
MIPS: Oprofile: Loongson: Remove useless parentheses
MIPS: Oprofile: Loongson: Unify macro for setting events
MIPS: nofpu and nodsp only affect CPU0
MIPS: Clean up tables for bootmem allocation
MIPS: Coding style cleanups of access of FCSR rounding mode bits
MIPS: Loongson 2F: Add gpio/gpioilb support
...
Diffstat (limited to 'arch/mips/bcm63xx/gpio.c')
-rw-r--r-- | arch/mips/bcm63xx/gpio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/bcm63xx/gpio.c b/arch/mips/bcm63xx/gpio.c index 315bc7f79ce1..f560fe7d38dd 100644 --- a/arch/mips/bcm63xx/gpio.c +++ b/arch/mips/bcm63xx/gpio.c | |||
@@ -91,7 +91,7 @@ static int bcm63xx_gpio_set_direction(struct gpio_chip *chip, | |||
91 | 91 | ||
92 | spin_lock_irqsave(&bcm63xx_gpio_lock, flags); | 92 | spin_lock_irqsave(&bcm63xx_gpio_lock, flags); |
93 | tmp = bcm_gpio_readl(reg); | 93 | tmp = bcm_gpio_readl(reg); |
94 | if (dir == GPIO_DIR_IN) | 94 | if (dir == BCM63XX_GPIO_DIR_IN) |
95 | tmp &= ~mask; | 95 | tmp &= ~mask; |
96 | else | 96 | else |
97 | tmp |= mask; | 97 | tmp |= mask; |
@@ -103,14 +103,14 @@ static int bcm63xx_gpio_set_direction(struct gpio_chip *chip, | |||
103 | 103 | ||
104 | static int bcm63xx_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) | 104 | static int bcm63xx_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) |
105 | { | 105 | { |
106 | return bcm63xx_gpio_set_direction(chip, gpio, GPIO_DIR_IN); | 106 | return bcm63xx_gpio_set_direction(chip, gpio, BCM63XX_GPIO_DIR_IN); |
107 | } | 107 | } |
108 | 108 | ||
109 | static int bcm63xx_gpio_direction_output(struct gpio_chip *chip, | 109 | static int bcm63xx_gpio_direction_output(struct gpio_chip *chip, |
110 | unsigned gpio, int value) | 110 | unsigned gpio, int value) |
111 | { | 111 | { |
112 | bcm63xx_gpio_set(chip, gpio, value); | 112 | bcm63xx_gpio_set(chip, gpio, value); |
113 | return bcm63xx_gpio_set_direction(chip, gpio, GPIO_DIR_OUT); | 113 | return bcm63xx_gpio_set_direction(chip, gpio, BCM63XX_GPIO_DIR_OUT); |
114 | } | 114 | } |
115 | 115 | ||
116 | 116 | ||