]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
include: linux: io: define devm_ioremap on board with ioremap
authorPhilippe Reynes <philippe.reynes@softathome.com>
Fri, 15 Mar 2019 14:14:34 +0000 (15:14 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 22 Apr 2019 15:55:58 +0000 (11:55 -0400)
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>
include/linux/io.h

index 9badab49b0bdb25fca8ce038b1beba9d3b9af1d8..79847886be95ddef9cc4cd309b00225a36ba77df 100644 (file)
@@ -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 */