aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ep93xx
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2007-11-26 12:50:42 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-01-26 09:37:31 -0500
commit6331acd78f7916db16ec20b50d7838bd4944cd27 (patch)
treead803b2054ad21333cb013763c9bc6e022b88adc /arch/arm/mach-ep93xx
parent3c9a071d77e007464952a2d41b6686d98eb3f0b8 (diff)
[ARM] 4671/1: ep93xx: remove obsolete gpio_line_* operations
With the new GPIO methods in place the old gpio_line_* methods are redundant, so this patch finally removes the old legacy gpio_line_* wrappers. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org> Acked-by: Lennert Buytenhek <buytenh@wantstofly.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-ep93xx')
-rw-r--r--arch/arm/mach-ep93xx/core.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/arm/mach-ep93xx/core.c b/arch/arm/mach-ep93xx/core.c
index 2788da06417c..4cb3f742a6a1 100644
--- a/arch/arm/mach-ep93xx/core.c
+++ b/arch/arm/mach-ep93xx/core.c
@@ -189,6 +189,9 @@ static const u8 data_direction_register_offset[8] = {
189 0x10, 0x14, 0x34, 0x1c, 0x24, 0x18, 0x3c, 0x44, 189 0x10, 0x14, 0x34, 0x1c, 0x24, 0x18, 0x3c, 0x44,
190}; 190};
191 191
192#define GPIO_IN 0
193#define GPIO_OUT 1
194
192static void ep93xx_gpio_set_direction(unsigned line, int direction) 195static void ep93xx_gpio_set_direction(unsigned line, int direction)
193{ 196{
194 unsigned int data_direction_register; 197 unsigned int data_direction_register;
@@ -217,12 +220,6 @@ static void ep93xx_gpio_set_direction(unsigned line, int direction)
217 local_irq_restore(flags); 220 local_irq_restore(flags);
218} 221}
219 222
220void __deprecated gpio_line_config(int line, int direction)
221{
222 ep93xx_gpio_set_direction(line, direction);
223}
224EXPORT_SYMBOL(gpio_line_config);
225
226int gpio_direction_input(unsigned gpio) 223int gpio_direction_input(unsigned gpio)
227{ 224{
228 if (gpio > EP93XX_GPIO_LINE_MAX) 225 if (gpio > EP93XX_GPIO_LINE_MAX)