]> git.sur5r.net Git - u-boot/commitdiff
nios2: zap ioremap
authorThomas Chou <thomas@wytron.com.tw>
Sat, 14 Nov 2015 03:30:30 +0000 (11:30 +0800)
committerThomas Chou <thomas@wytron.com.tw>
Wed, 18 Nov 2015 13:18:30 +0000 (21:18 +0800)
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>
arch/nios2/include/asm/io.h

index 95d88012dd29cd5da4ec73d913011288e2673096..e951500190c046ccf5888778966311b8259c69a3 100644 (file)
@@ -47,12 +47,6 @@ static inline phys_addr_t virt_to_phys(void * vaddr)
        return (phys_addr_t)vaddr & gd->arch.physaddr_mask;
 }
 
        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))
 #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))