[PATCH] drivers:staging:crystalhd Fixes sparse warning about incorrect type
From: John de la Garza
Date: Sat Mar 22 2014 - 16:59:26 EST
Fixes these sparse warnings:
drivers/staging/crystalhd/crystalhd_lnx.c:507:30: warning: incorrect type in argument 1 (different address spaces)
drivers/staging/crystalhd/crystalhd_lnx.c:507:30: expected void volatile [noderef] <asn:2>*addr
drivers/staging/crystalhd/crystalhd_lnx.c:507:30: got void *addr
drivers/staging/crystalhd/crystalhd_lnx.c:510:30: warning: incorrect type in argument 1 (different address spaces)
drivers/staging/crystalhd/crystalhd_lnx.c:510:30: expected void volatile [noderef] <asn:2>*addr
drivers/staging/crystalhd/crystalhd_lnx.c:510:30: got void *i2o_addr
Signed-off-by: John de la Garza <john@xxxxxxxxx>
---
drivers/staging/crystalhd/crystalhd_lnx.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/crystalhd/crystalhd_lnx.h b/drivers/staging/crystalhd/crystalhd_lnx.h
index 816e1cd..49e1ef3 100644
--- a/drivers/staging/crystalhd/crystalhd_lnx.h
+++ b/drivers/staging/crystalhd/crystalhd_lnx.h
@@ -58,11 +58,11 @@ struct crystalhd_adp {
unsigned long pci_mem_start;
uint32_t pci_mem_len;
- void *addr;
+ void __iomem *addr;
unsigned long pci_i2o_start;
uint32_t pci_i2o_len;
- void *i2o_addr;
+ void __iomem *i2o_addr;
unsigned int drv_data;
unsigned int dmabits; /* 32 | 64 */
--
1.9.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/