diff options
Diffstat (limited to 'include/asm-nios/io.h')
-rw-r--r-- | include/asm-nios/io.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-nios/io.h b/include/asm-nios/io.h index 8b788068b3..899682cc40 100644 --- a/include/asm-nios/io.h +++ b/include/asm-nios/io.h @@ -133,4 +133,9 @@ static inline void unmap_physmem(void *vaddr, unsigned long flags) } +static inline phys_addr_t virt_to_phys(void * vaddr) +{ + return (phys_addr_t)(vaddr); +} + #endif /* __ASM_NIOS_IO_H_ */ |