]> err.no Git - linux-2.6/commitdiff
mfd/asic3: ioread/iowrite take pointer, not unsigned long
authorAl Viro <viro@ftp.linux.org.uk>
Sat, 29 Mar 2008 03:10:58 +0000 (03:10 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 30 Mar 2008 21:20:24 +0000 (14:20 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/mfd/asic3.c

index 63fb1ff3ad100b61b8a441cae9435fdb0186c264..f6f2d960cadbef6e883842b4b43b09a85947f4ea 100644 (file)
 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));
 }