diff options
Diffstat (limited to 'arch/arm/mach-at91/include')
-rw-r--r-- | arch/arm/mach-at91/include/mach/gpio.h | 28 | ||||
-rw-r--r-- | arch/arm/mach-at91/include/mach/system.h | 2 |
2 files changed, 5 insertions, 25 deletions
diff --git a/arch/arm/mach-at91/include/mach/gpio.h b/arch/arm/mach-at91/include/mach/gpio.h index bffa6741a75..04c91e31c9c 100644 --- a/arch/arm/mach-at91/include/mach/gpio.h +++ b/arch/arm/mach-at91/include/mach/gpio.h | |||
@@ -213,32 +213,12 @@ extern void at91_gpio_resume(void); | |||
213 | */ | 213 | */ |
214 | 214 | ||
215 | #include <asm/errno.h> | 215 | #include <asm/errno.h> |
216 | |||
217 | static inline int gpio_request(unsigned gpio, const char *label) | ||
218 | { | ||
219 | return 0; | ||
220 | } | ||
221 | |||
222 | static inline void gpio_free(unsigned gpio) | ||
223 | { | ||
224 | might_sleep(); | ||
225 | } | ||
226 | |||
227 | extern int gpio_direction_input(unsigned gpio); | ||
228 | extern int gpio_direction_output(unsigned gpio, int value); | ||
229 | |||
230 | static inline int gpio_get_value(unsigned gpio) | ||
231 | { | ||
232 | return at91_get_gpio_value(gpio); | ||
233 | } | ||
234 | |||
235 | static inline void gpio_set_value(unsigned gpio, int value) | ||
236 | { | ||
237 | at91_set_gpio_value(gpio, value); | ||
238 | } | ||
239 | |||
240 | #include <asm-generic/gpio.h> /* cansleep wrappers */ | 216 | #include <asm-generic/gpio.h> /* cansleep wrappers */ |
241 | 217 | ||
218 | #define gpio_get_value __gpio_get_value | ||
219 | #define gpio_set_value __gpio_set_value | ||
220 | #define gpio_cansleep __gpio_cansleep | ||
221 | |||
242 | static inline int gpio_to_irq(unsigned gpio) | 222 | static inline int gpio_to_irq(unsigned gpio) |
243 | { | 223 | { |
244 | return gpio; | 224 | return gpio; |
diff --git a/arch/arm/mach-at91/include/mach/system.h b/arch/arm/mach-at91/include/mach/system.h index e712658d966..5268af3933c 100644 --- a/arch/arm/mach-at91/include/mach/system.h +++ b/arch/arm/mach-at91/include/mach/system.h | |||
@@ -43,7 +43,7 @@ static inline void arch_idle(void) | |||
43 | 43 | ||
44 | void (*at91_arch_reset)(void); | 44 | void (*at91_arch_reset)(void); |
45 | 45 | ||
46 | static inline void arch_reset(char mode) | 46 | static inline void arch_reset(char mode, const char *cmd) |
47 | { | 47 | { |
48 | /* call the CPU-specific reset function */ | 48 | /* call the CPU-specific reset function */ |
49 | if (at91_arch_reset) | 49 | if (at91_arch_reset) |