summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2016-07-18 08:14:47 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2016-07-19 06:49:50 +0200
commit6f239e487c186c453ff094e4da4bbf5f6a00cc57 (patch)
treeb59ff52c686b5093e31213ef81cae63ae5a26091 /drivers/mfd
parenta3eae6db13543fca4d05f4c021a4f7c359daf8cf (diff)
downloadbarebox-6f239e487c186c453ff094e4da4bbf5f6a00cc57.tar.gz
barebox-6f239e487c186c453ff094e4da4bbf5f6a00cc57.tar.xz
mfd: syscon: Use IOMEM instead of explicit cast
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/syscon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c
index 487fa9ee0a..295e210f6e 100644
--- a/drivers/mfd/syscon.c
+++ b/drivers/mfd/syscon.c
@@ -123,7 +123,7 @@ static int syscon_probe(struct device_d *dev)
return PTR_ERR(res);
}
- syscon->base = (void __iomem *)res->start;
+ syscon->base = IOMEM(res->start);
dev->priv = syscon;
dev_dbg(dev, "map 0x%x-0x%x registered\n", res->start, res->end);