projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49afa0a
)
MIPS: RB532: replace raw volatile read with a readl
author
Florian Fainelli
<florian@openwrt.org>
Fri, 22 Aug 2008 15:02:03 +0000
(17:02 +0200)
committer
Ralf Baechle
<ralf@linux-mips.org>
Sat, 11 Oct 2008 15:18:45 +0000
(16:18 +0100)
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>
arch/mips/rb532/gpio.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/mips/rb532/gpio.c
b/arch/mips/rb532/gpio.c
index 11d7127655e3e131569f389033fef6cf932a38e4..b028779fedda3e031681afde61178b60077e3995 100644
(file)
--- 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));