devm_ioremap_release() is an implementation detail and shouldn't be public. Signed-off-by: Ladislav Michl <ladis@xxxxxxxxxxxxxx> --- include/linux/device.h | 1 - lib/devres.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/device.h b/include/linux/device.h index 91f508edb266..e99d41a6190b 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -734,7 +734,6 @@ void __iomem *devm_ioremap_wc(struct device *dev, resource_size_t offset, void __iomem *devm_ioremap_resource(struct device *dev, struct resource *res); void devm_iounmap(struct device *dev, void __iomem *addr); -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); diff --git a/lib/devres.c b/lib/devres.c index f2f80c233aa4..e9aad136f667 100644 --- a/lib/devres.c +++ b/lib/devres.c @@ -5,7 +5,7 @@ #include <linux/gfp.h> #include <linux/export.h> -void devm_ioremap_release(struct device *dev, void *res) +static void devm_ioremap_release(struct device *dev, void *res) { iounmap(*(void __iomem **)res); } -- 2.15.1