i2c-tegra: __iomem annotation fix
authorOlof Johansson <olof@lixom.net>
Thu, 13 Oct 2011 00:33:00 +0000 (17:33 -0700)
committerBen Dooks <ben-linux@fluff.org>
Sat, 29 Oct 2011 10:11:23 +0000 (11:11 +0100)
drivers/i2c/busses/i2c-tegra.c:585:7: warning: incorrect type in assignment (different address spaces)
drivers/i2c/busses/i2c-tegra.c:585:7:    expected void *base
drivers/i2c/busses/i2c-tegra.c:585:7:    got void [noderef] <asn:2>*
drivers/i2c/busses/i2c-tegra.c:619:16: warning: incorrect type in assignment (different address spaces)
drivers/i2c/busses/i2c-tegra.c:619:16:    expected void [noderef] <asn:2>*base
drivers/i2c/busses/i2c-tegra.c:619:16:    got void *base
drivers/i2c/busses/i2c-tegra.c:689:10: warning: incorrect type in argument 1 (different address spaces)
drivers/i2c/busses/i2c-tegra.c:689:10:    expected void volatile [noderef] <asn:2>*addr
drivers/i2c/busses/i2c-tegra.c:689:10:    got void *base

Signed-off-by: Olof Johansson <olof@lixom.net>
Acked-by; Stephen Warren <swarren@nvidia.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-tegra.c

index 3c94c4a81a554563daecc1d872f044886b09fb1b..b0505309faa76d1c474f9cf5f68b9ea6fd2963f1 100644 (file)
@@ -566,7 +566,7 @@ static int tegra_i2c_probe(struct platform_device *pdev)
        struct clk *clk;
        struct clk *i2c_clk;
        const unsigned int *prop;
-       void *base;
+       void __iomem *base;
        int irq;
        int ret = 0;