Skip to content
Snippets Groups Projects
Commit b32661e0 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

mfd/asic3: ioread/iowrite take pointer, not unsigned long

parent 97cf010a
No related branches found
No related tags found
No related merge requests found
......@@ -28,14 +28,14 @@
static inline void asic3_write_register(struct asic3 *asic,
unsigned int reg, u32 value)
{
iowrite16(value, (unsigned long)asic->mapping +
iowrite16(value, asic->mapping +
(reg >> asic->bus_shift));
}
static inline u32 asic3_read_register(struct asic3 *asic,
unsigned int reg)
{
return ioread16((unsigned long)asic->mapping +
return ioread16(asic->mapping +
(reg >> asic->bus_shift));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment