Skip to contentSkip to conversation

rb532: replace volatile rough read with a readl

PATCH In review Florian Fainelli 1 participant 1 message Aug 21, 2008 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 5/6 rb532: replace volatile rough read with a readl

This patch replaces a rough read using volatiles
with a readl.

---

arch/mips/rb532/gpio.c +1 -1
index 3d1632c..d44a703 100644
@@ -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));