summaryrefslogtreecommitdiffstats
path: root/drivers/staging/ipack/devices
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsalvez2012-05-14 12:41:25 +0200
committerGreg Kroah-Hartman2012-05-14 22:43:19 +0200
commit5a81b4a0b673bf34823191a83318377c0e66e713 (patch)
tree6a9693d2d5399ac86e843a3a08fda14658eba28c /drivers/staging/ipack/devices
parentStaging: ipack: added more info in Kconfig's help about ipack (diff)
downloadkernel-qcow2-linux-5a81b4a0b673bf34823191a83318377c0e66e713.tar.gz
kernel-qcow2-linux-5a81b4a0b673bf34823191a83318377c0e66e713.tar.xz
kernel-qcow2-linux-5a81b4a0b673bf34823191a83318377c0e66e713.zip
Staging: ipack: fix a few sparse warnings
Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ipack/devices')
-rw-r--r--drivers/staging/ipack/devices/ipoctal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/ipack/devices/ipoctal.c b/drivers/staging/ipack/devices/ipoctal.c
index a28c677cbad1..c88f391ca62c 100644
--- a/drivers/staging/ipack/devices/ipoctal.c
+++ b/drivers/staging/ipack/devices/ipoctal.c
@@ -72,7 +72,7 @@ static inline void ipoctal_write_io_reg(struct ipoctal *ipoctal,
{
unsigned long offset;
- offset = ((void *) dest) - ipoctal->dev->io_space.address;
+ offset = ((void __iomem *) dest) - ipoctal->dev->io_space.address;
ipoctal->dev->ops->write8(ipoctal->dev, IPACK_IO_SPACE, offset, value);
}
@@ -89,7 +89,7 @@ static inline unsigned char ipoctal_read_io_reg(struct ipoctal *ipoctal,
unsigned long offset;
unsigned char value;
- offset = ((void *) src) - ipoctal->dev->io_space.address;
+ offset = ((void __iomem *) src) - ipoctal->dev->io_space.address;
ipoctal->dev->ops->read8(ipoctal->dev, IPACK_IO_SPACE, offset, &value);
return value;
}