diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-06-07 20:02:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-06-07 20:02:29 -0400 |
commit | c52ecdab06ff3b4d0f8914951eb74dc8b049f51c (patch) | |
tree | 291a55adb3be3fec45dcc6affa72d9d1244ba42a /include/asm-arm/arch-pxa/gpio.h | |
parent | dc315011312f04433e0fdd34b6a3dde4bfde1e48 (diff) | |
parent | c0f85a82484c25d23b44a87a35daddb2b276b4aa (diff) |
Merge master.kernel.org:/home/rmk/linux-2.6-arm
* master.kernel.org:/home/rmk/linux-2.6-arm:
[ARM] pxa: fix pxa27x keyboard driver
[ARM] Fix 4417/1: Serial: Fix AMBA drivers locking
[ARM] 4421/1: AT91: Value of _KEY fields.
[ARM] Solve buggy smp_processor_id() usage
[ARM] 4422/1: Fix default value handling in gpio_direction_output (PXA)
[ARM] 4419/1: AT91: SAM9 USB clocks check for suspending
[ARM] 4418/1: AT91: Number of programmable clocks differs
[ARM] 4392/2: Do not corrupt the SP register in compressed/head.S
Diffstat (limited to 'include/asm-arm/arch-pxa/gpio.h')
-rw-r--r-- | include/asm-arm/arch-pxa/gpio.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-arm/arch-pxa/gpio.h b/include/asm-arm/arch-pxa/gpio.h index aeba24347f8e..9e99241f3edf 100644 --- a/include/asm-arm/arch-pxa/gpio.h +++ b/include/asm-arm/arch-pxa/gpio.h | |||
@@ -45,7 +45,8 @@ static inline int gpio_direction_input(unsigned gpio) | |||
45 | 45 | ||
46 | static inline int gpio_direction_output(unsigned gpio, int value) | 46 | static inline int gpio_direction_output(unsigned gpio, int value) |
47 | { | 47 | { |
48 | return pxa_gpio_mode(gpio | GPIO_OUT | (value ? 0 : GPIO_DFLT_LOW)); | 48 | return pxa_gpio_mode(gpio | GPIO_OUT | |
49 | (value ? GPIO_DFLT_HIGH : GPIO_DFLT_LOW)); | ||
49 | } | 50 | } |
50 | 51 | ||
51 | static inline int __gpio_get_value(unsigned gpio) | 52 | static inline int __gpio_get_value(unsigned gpio) |