summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-iop3xx.h
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2010-11-29 12:33:39 +0200
committerBen Dooks <ben-linux@fluff.org>2011-01-04 00:53:37 +0000
commit747fcc91cb5bade1f681b3a8d0e6d4f697d865fd (patch)
tree53da819407c6f1e8ab7739c500da1b0fda1480f7 /drivers/i2c/busses/i2c-iop3xx.h
parent03ed6a3aa600c48593c3984812fda2d5945ddb46 (diff)
downloadblackbird-obmc-linux-747fcc91cb5bade1f681b3a8d0e6d4f697d865fd.tar.gz
blackbird-obmc-linux-747fcc91cb5bade1f681b3a8d0e6d4f697d865fd.zip
i2c-iop3xx: add iomem annotation
Eliminate unnecessary casts and the following sparse warnings: drivers/i2c/busses/i2c-iop3xx.c:65:9: warning: incorrect type in argument 1 (different base types) drivers/i2c/busses/i2c-iop3xx.c:65:9: expected void const volatile [noderef] <asn:2>*<noident> drivers/i2c/busses/i2c-iop3xx.c:65:9: got unsigned int [ the previous warning is repeated 18 times ] drivers/i2c/busses/i2c-iop3xx.c:456:33: warning: cast removes address space of expression Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-iop3xx.h')
-rw-r--r--drivers/i2c/busses/i2c-iop3xx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-iop3xx.h b/drivers/i2c/busses/i2c-iop3xx.h
index 8485861f6a36..097e270955d0 100644
--- a/drivers/i2c/busses/i2c-iop3xx.h
+++ b/drivers/i2c/busses/i2c-iop3xx.h
@@ -97,7 +97,7 @@
#define IOP3XX_I2C_IO_SIZE 0x18
struct i2c_algo_iop3xx_data {
- u32 ioaddr;
+ void __iomem *ioaddr;
wait_queue_head_t waitq;
spinlock_t lock;
u32 SR_enabled, SR_received;
OpenPOWER on IntegriCloud