diff options
author | Florian Fainelli <florian@openwrt.org> | 2008-08-22 17:02:03 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-10-11 16:18:45 +0100 |
commit | c76befc3429354909d3242d11b8d3bcb3bea4b03 (patch) | |
tree | c0328f287a3dd6ebb90cf4be8014d0609d1c1ef2 /arch/mips/rb532 | |
parent | 49afa0a15180c22c8836ef36edd6aa48ab7b2915 (diff) | |
download | lwn-c76befc3429354909d3242d11b8d3bcb3bea4b03.tar.gz lwn-c76befc3429354909d3242d11b8d3bcb3bea4b03.zip |
MIPS: RB532: replace raw volatile read with a readl
This patch replaces a raw read using volatiles
with a readl.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/rb532')
-rw-r--r-- | arch/mips/rb532/gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/rb532/gpio.c b/arch/mips/rb532/gpio.c index 11d7127655e3..b028779fedda 100644 --- a/arch/mips/rb532/gpio.c +++ b/arch/mips/rb532/gpio.c @@ -70,7 +70,7 @@ void set_434_reg(unsigned reg_offs, unsigned bit, unsigned len, unsigned val) spin_lock_irqsave(&dev3.lock, flags); - data = *(volatile unsigned *) (IDT434_REG_BASE + reg_offs); + data = readl(IDT434_REG_BASE + reg_offs); for (i = 0; i != len; ++i) { if (val & (1 << i)) data |= (1 << (i + bit)); |