diff options
Diffstat (limited to 'arch/avr32/mach-at32ap/pio.c')
| -rw-r--r-- | arch/avr32/mach-at32ap/pio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/avr32/mach-at32ap/pio.c b/arch/avr32/mach-at32ap/pio.c index 9ba5654cde11..1eb99b814f5b 100644 --- a/arch/avr32/mach-at32ap/pio.c +++ b/arch/avr32/mach-at32ap/pio.c | |||
| @@ -214,7 +214,7 @@ int gpio_direction_input(unsigned int gpio) | |||
| 214 | } | 214 | } |
| 215 | EXPORT_SYMBOL(gpio_direction_input); | 215 | EXPORT_SYMBOL(gpio_direction_input); |
| 216 | 216 | ||
| 217 | int gpio_direction_output(unsigned int gpio) | 217 | int gpio_direction_output(unsigned int gpio, int value) |
| 218 | { | 218 | { |
| 219 | struct pio_device *pio; | 219 | struct pio_device *pio; |
| 220 | unsigned int pin; | 220 | unsigned int pin; |
| @@ -223,6 +223,8 @@ int gpio_direction_output(unsigned int gpio) | |||
| 223 | if (!pio) | 223 | if (!pio) |
| 224 | return -ENODEV; | 224 | return -ENODEV; |
| 225 | 225 | ||
| 226 | gpio_set_value(gpio, value); | ||
| 227 | |||
| 226 | pin = gpio & 0x1f; | 228 | pin = gpio & 0x1f; |
| 227 | pio_writel(pio, OER, 1 << pin); | 229 | pio_writel(pio, OER, 1 << pin); |
| 228 | 230 | ||
