summaryrefslogtreecommitdiff
path: root/arch/nios2
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2015-11-14 11:30:30 +0800
committerThomas Chou <thomas@wytron.com.tw>2015-11-18 21:18:30 +0800
commitf5b76de4403881940a3ef57f9b6e9fa5b3433070 (patch)
tree9a6a9cfcc98c401f3e37e80dc0e981d34132c57d /arch/nios2
parent7be35ddd2011b9c73e8940a368f801b1b900b610 (diff)
downloadu-boot-imx-f5b76de4403881940a3ef57f9b6e9fa5b3433070.zip
u-boot-imx-f5b76de4403881940a3ef57f9b6e9fa5b3433070.tar.gz
u-boot-imx-f5b76de4403881940a3ef57f9b6e9fa5b3433070.tar.bz2
nios2: zap ioremap
Zap ioremap(), as it is replaced by map_physmem(,,MAP_NOCACHE). Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'arch/nios2')
-rw-r--r--arch/nios2/include/asm/io.h6
1 files changed, 0 insertions, 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))