linux-mips
[Top] [All Lists]

[PATCH 4/5] MIPS: rb532: remove {get,set}_434_reg()

To: Linux-Mips List <linux-mips@linux-mips.org>
Subject: [PATCH 4/5] MIPS: rb532: remove {get,set}_434_reg()
From: Phil Sutter <n0-1@freewrt.org>
Date: Mon, 19 Jan 2009 23:42:53 +0100
Cc: ralf@linux-mips.org, florian@openwrt.org
In-reply-to: <1232404974-18497-3-git-send-email-n0-1@freewrt.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1232404974-18497-1-git-send-email-n0-1@freewrt.org> <1232404974-18497-2-git-send-email-n0-1@freewrt.org> <1232404974-18497-3-git-send-email-n0-1@freewrt.org>
Sender: linux-mips-bounce@linux-mips.org
These kernel symbols are unused. Also, since dev3 init has been moved to
devices.c, set_434_reg() breaks compiling as it uses dev3.

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

diff --git a/arch/mips/rb532/gpio.c b/arch/mips/rb532/gpio.c
index b9cb428..a916ac8 100644
--- a/arch/mips/rb532/gpio.c
+++ b/arch/mips/rb532/gpio.c
@@ -50,33 +50,6 @@ static struct resource rb532_gpio_reg0_res[] = {
        }
 };
 
-void set_434_reg(unsigned reg_offs, unsigned bit, unsigned len, unsigned val)
-{
-       unsigned long flags;
-       unsigned data;
-       unsigned i = 0;
-
-       spin_lock_irqsave(&dev3.lock, flags);
-
-       data = readl(IDT434_REG_BASE + reg_offs);
-       for (i = 0; i != len; ++i) {
-               if (val & (1 << i))
-                       data |= (1 << (i + bit));
-               else
-                       data &= ~(1 << (i + bit));
-       }
-       writel(data, (IDT434_REG_BASE + reg_offs));
-
-       spin_unlock_irqrestore(&dev3.lock, flags);
-}
-EXPORT_SYMBOL(set_434_reg);
-
-unsigned get_434_reg(unsigned reg_offs)
-{
-       return readl(IDT434_REG_BASE + reg_offs);
-}
-EXPORT_SYMBOL(get_434_reg);
-
 /* rb532_set_bit - sanely set a bit
  *
  * bitval: new value for the bit
-- 
1.5.6.4


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 4/5] MIPS: rb532: remove {get,set}_434_reg(), Phil Sutter <=