Skip to content

Commit

Permalink
mfd/asic3: ioread/iowrite take pointer, not unsigned long
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Al Viro authored and torvalds committed Mar 30, 2008
1 parent 97cf010 commit b32661e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mfd/asic3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit b32661e

Please sign in to comment.