Commit c76befc3 authored by Florian Fainelli's avatar Florian Fainelli Committed by Ralf Baechle

MIPS: RB532: replace raw volatile read with a readl

This patch replaces a raw read using volatiles
with a readl.
Signed-off-by: default avatarFlorian Fainelli <florian@openwrt.org>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 49afa0a1
...@@ -70,7 +70,7 @@ void set_434_reg(unsigned reg_offs, unsigned bit, unsigned len, unsigned val) ...@@ -70,7 +70,7 @@ void set_434_reg(unsigned reg_offs, unsigned bit, unsigned len, unsigned val)
spin_lock_irqsave(&dev3.lock, flags); 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) { for (i = 0; i != len; ++i) {
if (val & (1 << i)) if (val & (1 << i))
data |= (1 << (i + bit)); data |= (1 << (i + bit));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment