[U-Boot] [PATCH 10/10] nios2: zap ioremap
Thomas Chou
thomas at wytron.com.tw
Sat Nov 14 06:59:31 CET 2015
Zap ioremap(), as it is replaced by map_physmem(,,MAP_NOCACHE).
Signed-off-by: Thomas Chou <thomas at wytron.com.tw>
---
arch/nios2/include/asm/io.h | 6 ------
1 file changed, 6 deletions(-)
diff --git a/arch/nios2/include/asm/io.h b/arch/nios2/include/asm/io.h
index 95d8801..e951500 100644
--- a/arch/nios2/include/asm/io.h
+++ b/arch/nios2/include/asm/io.h
@@ -47,12 +47,6 @@ static inline phys_addr_t virt_to_phys(void * vaddr)
return (phys_addr_t)vaddr & gd->arch.physaddr_mask;
}
-static inline void *ioremap(unsigned long physaddr, unsigned long size)
-{
- DECLARE_GLOBAL_DATA_PTR;
- return (void *)(gd->arch.io_region_base | physaddr);
-}
-
#define __raw_writeb(v,a) (*(volatile unsigned char *)(a) = (v))
#define __raw_writew(v,a) (*(volatile unsigned short *)(a) = (v))
#define __raw_writel(v,a) (*(volatile unsigned int *)(a) = (v))
--
2.5.0
More information about the U-Boot
mailing list