summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6655/device.h
diff options
context:
space:
mode:
authorGuillaume Clement <gclement@baobob.org>2014-07-22 22:08:26 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-22 15:02:08 -0700
commit1683440595ea33cc019fb8524b04319cf82bc6ac (patch)
treea21a5d5a642a74085206c268d87d7609c1625e2d /drivers/staging/vt6655/device.h
parentc49d4b96ab6175fdcc3f858b0ef620f20ae16437 (diff)
downloadop-kernel-dev-1683440595ea33cc019fb8524b04319cf82bc6ac.zip
op-kernel-dev-1683440595ea33cc019fb8524b04319cf82bc6ac.tar.gz
staging: vt6655: change type of PortOffset to void __iomem *
PortOffset was an unsigned long, but used as an pointer to io memory. Sometimes it was not properly cast before use, which caused many warning by sparse. By updating its type to void __iomem *, and reflecting the changes where it is needed, this removes most of those warnings. Signed-off-by: Guillaume Clement <gclement@baobob.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6655/device.h')
-rw-r--r--drivers/staging/vt6655/device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6655/device.h b/drivers/staging/vt6655/device.h
index aab63ca..647e36fe 100644
--- a/drivers/staging/vt6655/device.h
+++ b/drivers/staging/vt6655/device.h
@@ -391,7 +391,7 @@ typedef struct __device_info {
CHIP_TYPE chip_id;
- unsigned long PortOffset;
+ void __iomem *PortOffset;
unsigned long dwIsr;
u32 memaddr;
u32 ioaddr;
OpenPOWER on IntegriCloud