]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/plat-omap/include/mach/gpio.h
make legacy gpio request/free calls superfluous (OMAP and mainline)
[linux-2.6-omap-h63xx.git] / arch / arm / plat-omap / include / mach / gpio.h
index 552ad0c0ac4f09cde1e48b063ea5fda4a4ba6a1e..04e68e88f1348a9c2e3d01e74974d7967509ee01 100644 (file)
@@ -71,8 +71,6 @@
                                 IH_GPIO_BASE + (nr))
 
 extern int omap_gpio_init(void);       /* Call from board init only */
-extern int omap_request_gpio(int gpio);
-extern void omap_free_gpio(int gpio);
 extern void omap2_gpio_prepare_for_retention(void);
 extern void omap2_gpio_resume_after_retention(void);
 extern void omap_set_gpio_debounce(int gpio, int enable);
@@ -89,6 +87,16 @@ extern void omap_set_gpio_debounce_time(int gpio, int enable);
 #include <linux/errno.h>
 #include <asm-generic/gpio.h>
 
+static inline int omap_request_gpio(int gpio)
+{
+       return gpio_request(gpio, "FIXME");
+}
+
+static inline void omap_free_gpio(int gpio)
+{
+       gpio_free(gpio);
+}
+
 static inline int gpio_get_value(unsigned gpio)
 {
        return __gpio_get_value(gpio);