diff options
-rw-r--r-- | include/asm-ppc/io.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-ppc/io.h b/include/asm-ppc/io.h index c00de45..64cb746 100644 --- a/include/asm-ppc/io.h +++ b/include/asm-ppc/io.h @@ -300,7 +300,7 @@ 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); + return (phys_addr_t)((unsigned long)vaddr); } #endif |