aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPhil Sutter <n0-1@freewrt.org>2009-01-19 17:42:53 -0500
committerRalf Baechle <ralf@linux-mips.org>2009-01-30 16:33:00 -0500
commit4ca3803f81bca9081f17ef67ffca8b11790f608d (patch)
treea8e24a6da9135b5b500244593165ed97473d2516 /arch
parent36f2db4b9c01689b1311d57a6297022d82000185 (diff)
MIPS: RB532: Remove {get,set}_434_reg()
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> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/rb532/gpio.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/arch/mips/rb532/gpio.c b/arch/mips/rb532/gpio.c
index 6229173946ad..f33868159826 100644
--- a/arch/mips/rb532/gpio.c
+++ b/arch/mips/rb532/gpio.c
@@ -50,33 +50,6 @@ static struct resource rb532_gpio_reg0_res[] = {
50 } 50 }
51}; 51};
52 52
53void set_434_reg(unsigned reg_offs, unsigned bit, unsigned len, unsigned val)
54{
55 unsigned long flags;
56 unsigned data;
57 unsigned i = 0;
58
59 spin_lock_irqsave(&dev3.lock, flags);
60
61 data = readl(IDT434_REG_BASE + reg_offs);
62 for (i = 0; i != len; ++i) {
63 if (val & (1 << i))
64 data |= (1 << (i + bit));
65 else
66 data &= ~(1 << (i + bit));
67 }
68 writel(data, (IDT434_REG_BASE + reg_offs));
69
70 spin_unlock_irqrestore(&dev3.lock, flags);
71}
72EXPORT_SYMBOL(set_434_reg);
73
74unsigned get_434_reg(unsigned reg_offs)
75{
76 return readl(IDT434_REG_BASE + reg_offs);
77}
78EXPORT_SYMBOL(get_434_reg);
79
80/* rb532_set_bit - sanely set a bit 53/* rb532_set_bit - sanely set a bit
81 * 54 *
82 * bitval: new value for the bit 55 * bitval: new value for the bit