|
@@ -5,12 +5,6 @@
|
|
#define ARCH_NR_GPIOS CONFIG_ARCH_NR_GPIO
|
|
#define ARCH_NR_GPIOS CONFIG_ARCH_NR_GPIO
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-/* not all ARM platforms necessarily support this API ... */
|
|
|
|
-#ifdef CONFIG_NEED_MACH_GPIO_H
|
|
|
|
-#include <mach/gpio.h>
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
-#ifndef __ARM_GPIOLIB_COMPLEX
|
|
|
|
/* Note: this may rely upon the value of ARCH_NR_GPIOS set in mach/gpio.h */
|
|
/* Note: this may rely upon the value of ARCH_NR_GPIOS set in mach/gpio.h */
|
|
#include <asm-generic/gpio.h>
|
|
#include <asm-generic/gpio.h>
|
|
|
|
|
|
@@ -18,7 +12,6 @@
|
|
#define gpio_get_value __gpio_get_value
|
|
#define gpio_get_value __gpio_get_value
|
|
#define gpio_set_value __gpio_set_value
|
|
#define gpio_set_value __gpio_set_value
|
|
#define gpio_cansleep __gpio_cansleep
|
|
#define gpio_cansleep __gpio_cansleep
|
|
-#endif
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
* Provide a default gpio_to_irq() which should satisfy every case.
|
|
* Provide a default gpio_to_irq() which should satisfy every case.
|