m32r: add definition of ioremap_wc to io.h
authorAbhilash Kesavan <a.kesavan@samsung.com>
Fri, 6 Feb 2015 13:45:26 +0000 (19:15 +0530)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 12 Oct 2017 14:27:21 +0000 (15:27 +0100)
commit 71a49d16f06de2ccdf52ca247d496a2bb1ca36fe upstream.

Before adding a resource managed ioremap_wc function, we need
to have ioremap_wc defined for m32r to prevent build errors.

Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/m32r/include/asm/io.h

index 4010f1f..f9f4fb6 100644 (file)
@@ -67,6 +67,7 @@ static inline void __iomem *ioremap(unsigned long offset, unsigned long size)
 
 extern void iounmap(volatile void __iomem *addr);
 #define ioremap_nocache(off,size) ioremap(off,size)
+#define ioremap_wc ioremap_nocache
 
 /*
  * IO bus memory addresses are also 1:1 with the physical address