[ARM] 4671/1: ep93xx: remove obsolete gpio_line_* operations

Previous thread: [ARM] 4708/1: iop: update defconfigs for 2.6.24 by Linux Kernel Mailing List on Monday, January 28, 2008 - 3:59 pm. (1 message)

Next thread: [ARM] 4670/1: ep93xx: implement IRQT_BOTHEDGE gpio irq sense type by Linux Kernel Mailing List on Monday, January 28, 2008 - 3:59 pm. (1 message)
From: Linux Kernel Mailing List
Date: Monday, January 28, 2008 - 3:59 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6331ac...
Commit:     6331acd78f7916db16ec20b50d7838bd4944cd27
Parent:     3c9a071d77e007464952a2d41b6686d98eb3f0b8
Author:     Herbert Valerio Riedel <hvr@gnu.org>
AuthorDate: Mon Nov 26 18:50:42 2007 +0100
Committer:  Russell King <rmk+kernel@arm.linux.org.uk>
CommitDate: Sat Jan 26 14:37:31 2008 +0000

    [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>
---
 arch/arm/mach-ep93xx/core.c        |    9 +++------
 include/asm-arm/arch-ep93xx/gpio.h |   19 -------------------
 2 files changed, 3 insertions(+), 25 deletions(-)

diff --git a/arch/arm/mach-ep93xx/core.c b/arch/arm/mach-ep93xx/core.c
index 2788da0..4cb3f74 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] = {
 	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)
diff --git a/include/asm-arm/arch-ep93xx/gpio.h b/include/asm-arm/arch-ep93xx/gpio.h
index cebb64b..9b1864b 100644
--- a/include/asm-arm/arch-ep93xx/gpio.h
+++ ...
Previous thread: [ARM] 4708/1: iop: update defconfigs for 2.6.24 by Linux Kernel Mailing List on Monday, January 28, 2008 - 3:59 pm. (1 message)

Next thread: [ARM] 4670/1: ep93xx: implement IRQT_BOTHEDGE gpio irq sense type by Linux Kernel Mailing List on Monday, January 28, 2008 - 3:59 pm. (1 message)