Skip to content

Commit

Permalink
MIPS: RB532: replace raw volatile read with a readl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ffainelli authored and ralfbaechle committed Oct 11, 2008
1 parent 49afa0a commit c76befc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/rb532/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit c76befc

Please sign in to comment.