]> Pileus Git - ~andy/linux/commitdiff
[ARM] 4671/1: ep93xx: remove obsolete gpio_line_* operations
authorHerbert Valerio Riedel <hvr@gnu.org>
Mon, 26 Nov 2007 17:50:42 +0000 (18:50 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 26 Jan 2008 14:37:31 +0000 (14:37 +0000)
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>
arch/arm/mach-ep93xx/core.c
include/asm-arm/arch-ep93xx/gpio.h

index 2788da06417caed1a2d3e544a66779ce1d261ce8..4cb3f742a6a19a8d75528e5dfb0503dedec49859 100644 (file)
@@ -189,6 +189,9 @@ static const u8 data_direction_register_offset[8] = {
        0x10, 0x14, 0x34, 0x1c, 0x24, 0x18, 0x3c, 0x44,
 };
 
+#define GPIO_IN                0
+#define GPIO_OUT       1
+
 static void ep93xx_gpio_set_direction(unsigned line, int direction)
 {
        unsigned int data_direction_register;
@@ -217,12 +220,6 @@ static void ep93xx_gpio_set_direction(unsigned line, int direction)
        local_irq_restore(flags);
 }
 
-void __deprecated gpio_line_config(int line, int direction)
-{
-       ep93xx_gpio_set_direction(line, direction);
-}
-EXPORT_SYMBOL(gpio_line_config);
-
 int gpio_direction_input(unsigned gpio)
 {
        if (gpio > EP93XX_GPIO_LINE_MAX)
index cebb64be7e4b966b83027a69be680ce2fa21252f..9b1864bbd9a87bf12a1d7bed1d703f35b1e81442 100644 (file)
@@ -138,23 +138,4 @@ static inline int irq_to_gpio(unsigned irq)
        return irq - gpio_to_irq(0);
 }
 
-/* obsolete specific GPIO API */
-#define GPIO_IN                                0
-#define GPIO_OUT                       1
-
-#define EP93XX_GPIO_LOW                        0
-#define EP93XX_GPIO_HIGH               1
-
-void __deprecated gpio_line_config(int line, int direction);
-
-static inline int  __deprecated gpio_line_get(int line)
-{
-       return gpio_get_value(line);
-}
-
-static inline void __deprecated gpio_line_set(int line, int value)
-{
-       gpio_set_value(line, value);
-}
-
 #endif