summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPhilippe Reynes <philippe.reynes@softathome.com>2019-03-15 15:14:34 +0100
committerTom Rini <trini@konsulko.com>2019-04-22 11:55:58 -0400
commitd28c5920cd40489bc1d75603c66658f3cf80579b (patch)
tree1e4dd9b96e2b2a96873a897ba60b5e16ea0f0556 /include/linux
parent6478848d165b63293f7021db9b70ce25a1e1062c (diff)
include: linux: io: define devm_ioremap on board with ioremap
The macro devm_ioremap is only defined for configuration that doesn't have ioremap. But this macro may also be defined on configuration with ioremap. This patch remove the condition for the macro devm_ioremap, so it's always defined. Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/io.h b/include/linux/io.h
index 9badab49b0b..79847886be9 100644
--- a/include/linux/io.h
+++ b/include/linux/io.h
@@ -65,8 +65,8 @@ static inline void __iomem *ioremap(resource_size_t offset,
static inline void iounmap(void __iomem *addr)
{
}
+#endif
#define devm_ioremap(dev, offset, size) ioremap(offset, size)
-#endif
#endif /* _LINUX_IO_H */