@@ -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);
@@ -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);
}
devm_ioremap_release() is an implementation detail and shouldn't be public. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> --- include/linux/device.h | 1 - lib/devres.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-)