ARM: OMAP: make legacy gpio request/free calls superfluous
Clean up OMAP GPIO request/free functions - Rename and declare static OMAP specific GPIO request/free functions - Register them into gpiolib as chip-specific hooks - Add omap_request_gpio/omap_free_gpio wrappers for existing code not converted yet to use gpiolib Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com> [ dbrownell@users.sourceforge.net: remove needless check_gpio() calls ] Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:

committed by
Tony Lindgren

parent
15f74b0335
commit
3ff164e155
@@ -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);
|
||||
|
Reference in New Issue
Block a user