diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2019-10-16 15:06:28 -0600 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2019-11-11 08:40:18 +0000 |
commit | e537654b7039aacfe8ae629d49655c0e5692ad44 (patch) | |
tree | 610f9c0aab36b4ce9d7f415fcc01b64367a2ed2c /include/linux/io.h | |
parent | 38e45d81d14e5f78cd67922596b1c37b4c22ec74 (diff) | |
download | lwn-e537654b7039aacfe8ae629d49655c0e5692ad44.tar.gz lwn-e537654b7039aacfe8ae629d49655c0e5692ad44.zip |
lib: devres: add a helper function for ioremap_uc
Implement a resource managed strongly uncachable ioremap function.
Cc: <stable@vger.kernel.org> # v4.19+
Tested-by: AceLan Kao <acelan.kao@canonical.com>
Signed-off-by: Tuowen Zhao <ztuowen@gmail.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/io.h')
-rw-r--r-- | include/linux/io.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/io.h b/include/linux/io.h index accac822336a..a59834bc0a11 100644 --- a/include/linux/io.h +++ b/include/linux/io.h @@ -64,6 +64,8 @@ static inline void devm_ioport_unmap(struct device *dev, void __iomem *addr) void __iomem *devm_ioremap(struct device *dev, resource_size_t offset, resource_size_t size); +void __iomem *devm_ioremap_uc(struct device *dev, resource_size_t offset, + resource_size_t size); void __iomem *devm_ioremap_nocache(struct device *dev, resource_size_t offset, resource_size_t size); void __iomem *devm_ioremap_wc(struct device *dev, resource_size_t offset, |