linux-mips
[Top] [All Lists]

[PATCH] MIPS: rb532: remove unused rb532_gpio_set_func()

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH] MIPS: rb532: remove unused rb532_gpio_set_func()
From: Phil Sutter <n0-1@freewrt.org>
Date: Fri, 28 Nov 2008 20:46:29 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <20081128193322.D103C386DBBE@mail.ifyouseekate.net>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20081128193322.D103C386DBBE@mail.ifyouseekate.net>
Sender: linux-mips-bounce@linux-mips.org
Since disabling of the alternate function of a GPIO pin is being done
implicitly when changing it's direction, the above mentioned function is
not being called anymore and can be removed.

Signed-off-by: Phil Sutter <n0-1@freewrt.org>
---
 arch/mips/rb532/gpio.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/arch/mips/rb532/gpio.c b/arch/mips/rb532/gpio.c
index b195f79..d75eb19 100644
--- a/arch/mips/rb532/gpio.c
+++ b/arch/mips/rb532/gpio.c
@@ -228,14 +228,6 @@ void rb532_gpio_set_istat(int bit, unsigned gpio)
 }
 EXPORT_SYMBOL(rb532_gpio_set_istat);
 
-/*
- * Configure GPIO alternate function
- */
-static void rb532_gpio_set_func(int bit, unsigned gpio)
-{
-       rb532_set_bit(bit, gpio, rb532_gpio_chip->regbase + GPIOFUNC);
-}
-
 int __init rb532_gpio_init(void)
 {
        struct resource *r;
-- 
1.5.6.4


<Prev in Thread] Current Thread [Next in Thread>