Commit d4f3add2 authored by Arnd Bergmann's avatar Arnd Bergmann

ARM: common/vic: use proper __iomem annotations

In vic_init, we pass addr into readl, so it needs to be a
pointer, not a u32 address.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 53eebb0d
...@@ -347,7 +347,8 @@ void __init vic_init(void __iomem *base, unsigned int irq_start, ...@@ -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 */ /* Identify which VIC cell this one is, by reading the ID */
for (i = 0; i < 4; i++) { 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); cellid |= (readl(addr) & 0xff) << (8 * i);
} }
vendor = (cellid >> 12) & 0xff; vendor = (cellid >> 12) & 0xff;
......
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