summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-08-11 06:07:07 +0300
committerDan Williams <dan.j.williams@intel.com>2015-08-14 23:01:21 +0300
commit7d3dcf26a6559fa82af3f53e2c8b163cec95fdaf (patch)
tree6175706fabf462830edfbfbbc041a89384b3a36e /include
parente836a256e8fd579c9d7a3685f22981225a1ca451 (diff)
downloadlinux-7d3dcf26a6559fa82af3f53e2c8b163cec95fdaf.tar.xz
devres: add devm_memremap
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/io.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/io.h b/include/linux/io.h
index 3fcf6256c088..d8d749abd665 100644
--- a/include/linux/io.h
+++ b/include/linux/io.h
@@ -80,6 +80,10 @@ int check_signature(const volatile void __iomem *io_addr,
const unsigned char *signature, int length);
void devm_ioremap_release(struct device *dev, void *res);
+void *devm_memremap(struct device *dev, resource_size_t offset,
+ size_t size, unsigned long flags);
+void devm_memunmap(struct device *dev, void *addr);
+
/*
* Some systems do not have legacy ISA devices.
* /dev/port is not a valid interface on these systems.