projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53eebb0
)
ARM: common/vic: use proper __iomem annotations
author
Arnd Bergmann
<arnd@arndb.de>
Fri, 23 Sep 2011 08:13:49 +0000
(10:13 +0200)
committer
Arnd Bergmann
<arnd@arndb.de>
Sat, 1 Oct 2011 19:11:30 +0000
(21:11 +0200)
In vic_init, we pass addr into readl, so it needs to be a
pointer, not a u32 address.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/common/vic.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/common/vic.c
b/arch/arm/common/vic.c
index 7aa4262ada7a1b5f046f8bbe36631e11ce516c74..adccf6d002b83a0ea50396faf7e0e7a28eee389f 100644
(file)
--- a/
arch/arm/common/vic.c
+++ b/
arch/arm/common/vic.c
@@
-347,7
+347,8
@@
void __init vic_init(void __iomem *base, unsigned int irq_start,
/* Identify which VIC cell this one is, by reading the ID */
for (i = 0; i < 4; i++) {
- u32 addr = ((u32)base & PAGE_MASK) + 0xfe0 + (i * 4);
+ void __iomem *addr;
+ addr = (void __iomem *)((u32)base & PAGE_MASK) + 0xfe0 + (i * 4);
cellid |= (readl(addr) & 0xff) << (8 * i);
}
vendor = (cellid >> 12) & 0xff;
This page took
0.024965 seconds
and
5
git commands to generate.