diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2008-03-29 04:10:58 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-03-30 23:20:24 +0200 |
commit | b32661e06ccf4be074aca48f0d070d306d4ff8a3 (patch) | |
tree | 69dd4793bf1c1498afdb1e793dcb81a5d5551374 /drivers/mfd/asic3.c | |
parent | zr364xx __user annotations (diff) | |
download | linux-b32661e06ccf4be074aca48f0d070d306d4ff8a3.tar.xz linux-b32661e06ccf4be074aca48f0d070d306d4ff8a3.zip |
mfd/asic3: ioread/iowrite take pointer, not unsigned long
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r-- | drivers/mfd/asic3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/asic3.c b/drivers/mfd/asic3.c index 63fb1ff3ad10..f6f2d960cadb 100644 --- a/drivers/mfd/asic3.c +++ b/drivers/mfd/asic3.c @@ -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)); } |