mfd/asic3: ioread/iowrite take pointer, not unsigned long
[sfrench/cifs-2.6.git] / 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));
 }