Skip to contentSkip to conversation

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

PATCH New Al Viro 1 participant 1 message Mar 29, 2008 Multifunction devices (MFD)

lore
Share & tools
lore

Al Viro

author
#0 lore raw

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

---
 drivers/mfd/asic3.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/mfd/asic3.c +2 -2
index 63fb1ff..f6f2d96 100644
@@ -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));
 }
 
Signature · 1 line
1.5.3.GIT