From: David Brownell Date: Thu, 24 May 2007 20:52:08 +0000 (-0700) Subject: [AVR32] gpio_*_cansleep() fix X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=2ae795b02aa46a99d845958ae8d7bc8afa04292b;p=openwrt%2Fstaging%2Fblogic.git [AVR32] gpio_*_cansleep() fix The AVR32 was missing the gpio_*_cansleep() calls, breaking compilation for some code using them. Signed-off-by: David Brownell Signed-off-by: Haavard Skinnemoen --- diff --git a/include/asm-avr32/arch-at32ap/gpio.h b/include/asm-avr32/arch-at32ap/gpio.h index 80a21aa9ae77..af7f9535bab3 100644 --- a/include/asm-avr32/arch-at32ap/gpio.h +++ b/include/asm-avr32/arch-at32ap/gpio.h @@ -14,6 +14,8 @@ int gpio_direction_output(unsigned int gpio, int value); int gpio_get_value(unsigned int gpio); void gpio_set_value(unsigned int gpio, int value); +#include /* cansleep wrappers */ + static inline int gpio_to_irq(unsigned int gpio) { return gpio + GPIO_IRQ_BASE;