aboutsummaryrefslogtreecommitdiff
path: root/lib/devres.c
diff options
context:
space:
mode:
authorMatthias Brugger2014-07-18 11:36:39 +0200
committerDaniel Lezcano2014-07-23 12:02:30 +0200
commitefd342fb0031a17758571dce42e3f373d94e2fec (patch)
tree914578b4b0944ae5ca884e18ffe13cd223dccb14 /lib/devres.c
parent7e1391876c8f95df9241deb78fa98e799e7bb05e (diff)
of: Provide a function to request and map memory
A call to of_iomap does not request the memory region. This patch adds the function of_io_request_and_map which requests the memory region before mapping it. Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com> Suggested-by: Thomas Gleixner <tglx@linutronix.de> Suggested-by: Rob Herring <robh@kernel.org> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'lib/devres.c')
-rw-r--r--lib/devres.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/devres.c b/lib/devres.c
index f562bf6ff71d..bb632484a860 100644
--- a/lib/devres.c
+++ b/lib/devres.c
@@ -86,8 +86,6 @@ void devm_iounmap(struct device *dev, void __iomem *addr)
}
EXPORT_SYMBOL(devm_iounmap);
-#define IOMEM_ERR_PTR(err) (__force void __iomem *)ERR_PTR(err)
-
/**
* devm_ioremap_resource() - check, request region, and ioremap resource
* @dev: generic device to handle the resource for