summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2016-07-18 08:14:44 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2016-07-19 06:49:20 +0200
commit2ccd60013dc2dabdb91cd2964cd9ce15eb949b1b (patch)
tree4ec1156cbe068137be12bcfa504c7c274035be6a
parent26384d071df258ed8abf30b99e1670cd26b57173 (diff)
downloadbarebox-2ccd60013dc2dabdb91cd2964cd9ce15eb949b1b.tar.gz
mfd: syscon: Don't call request_iomem_region()
On platforms that mix dedicated IP block register space with miscellaneous registers it is necessary to share register window between syscon and dedicated IP block driver. Calling request_iomem_region() implies exclusive ownership of the region, which, in the case above could not happen. This change also makes this driver's behaviour to that of its Linux kernel counterpart. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/mfd/syscon.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c
index 9589a03..ac46122 100644
--- a/drivers/mfd/syscon.c
+++ b/drivers/mfd/syscon.c
@@ -76,12 +76,6 @@ static int syscon_probe(struct device_d *dev)
return PTR_ERR(res);
}
- res = request_iomem_region(dev_name(dev), res->start, res->end);
- if (IS_ERR(res)) {
- free(syscon);
- return PTR_ERR(res);
- }
-
syscon->base = (void __iomem *)res->start;
dev->priv = syscon;