diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2015-09-16 17:24:03 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2015-10-20 16:51:37 +0200 |
commit | 6109dbd618e5921eed6b4d09d48c0abc8cd508cd (patch) | |
tree | 7bb0c45b726f5429ad502bb031336c119418ed5e | |
parent | 166c2ba398640278ae6037be4aa5562c03cf3d24 (diff) | |
download | talos-obmc-linux-6109dbd618e5921eed6b4d09d48c0abc8cd508cd.tar.gz talos-obmc-linux-6109dbd618e5921eed6b4d09d48c0abc8cd508cd.zip |
i2c: ismt: mark register space with __iomem
This fixes the code to suppress sparse warnings like:
drivers/i2c/busses/i2c-ismt.c:725:36: warning: incorrect type in argument 2 (different address spaces)
drivers/i2c/busses/i2c-ismt.c:725:36: expected void volatile [noderef] <asn:2>*addr
drivers/i2c/busses/i2c-ismt.c:725:36: got void *
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r-- | drivers/i2c/busses/i2c-ismt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-ismt.c b/drivers/i2c/busses/i2c-ismt.c index f994712d0904..3ab3b4d02017 100644 --- a/drivers/i2c/busses/i2c-ismt.c +++ b/drivers/i2c/busses/i2c-ismt.c @@ -165,7 +165,7 @@ struct ismt_desc { struct ismt_priv { struct i2c_adapter adapter; - void *smba; /* PCI BAR */ + void __iomem *smba; /* PCI BAR */ struct pci_dev *pci_dev; struct ismt_desc *hw; /* descriptor virt base addr */ dma_addr_t io_rng_dma; /* descriptor HW base addr */ |