diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-03-30 23:11:46 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-04-04 15:10:16 +0200 |
commit | 85f8ff5abba02f9c00878ae151e90eb27ec65e77 (patch) | |
tree | fe3233b08b15f8153b3a507175f3405f343ec09e | |
parent | 819f416b86b0d4ad3b6e1ec6375a626aabb96bbd (diff) | |
download | barebox-85f8ff5abba02f9c00878ae151e90eb27ec65e77.tar.gz barebox-85f8ff5abba02f9c00878ae151e90eb27ec65e77.tar.xz |
arm omap: remove unused request/free gpio functions
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/arm/mach-omap/gpio.c | 21 | ||||
-rw-r--r-- | arch/arm/mach-omap/include/mach/gpio.h | 4 |
2 files changed, 0 insertions, 25 deletions
diff --git a/arch/arm/mach-omap/gpio.c b/arch/arm/mach-omap/gpio.c index 6b06a730..68b78909 100644 --- a/arch/arm/mach-omap/gpio.c +++ b/arch/arm/mach-omap/gpio.c @@ -156,24 +156,3 @@ int gpio_get_value(unsigned gpio) return (__raw_readl(reg) & (1 << get_gpio_index(gpio))) != 0; } - -static void _reset_gpio(int gpio) -{ - gpio_direction_input(gpio); -} - -int omap_request_gpio(int gpio) -{ - if (check_gpio(gpio) < 0) - return -EINVAL; - - return 0; -} - -void omap_free_gpio(int gpio) -{ - if (check_gpio(gpio) < 0) - return; - - _reset_gpio(gpio); -} diff --git a/arch/arm/mach-omap/include/mach/gpio.h b/arch/arm/mach-omap/include/mach/gpio.h index 6758f9ce..245f781e 100644 --- a/arch/arm/mach-omap/include/mach/gpio.h +++ b/arch/arm/mach-omap/include/mach/gpio.h @@ -38,10 +38,6 @@ #ifndef _GPIO_H #define _GPIO_H -/* Request a gpio before using it */ -int omap_request_gpio(int gpio); -/* Reset and free a gpio after using it */ -void omap_free_gpio(int gpio); void gpio_set_value(unsigned gpio, int value); int gpio_get_value(unsigned gpio); int gpio_direction_output(unsigned gpio, int value); |