diff options
author | Florian Fainelli | 2022-07-07 13:37:42 -0700 |
---|---|---|
committer | Thomas Bogendoerfer | 2022-07-11 10:33:18 +0200 |
commit | 9044576357b16d9ebbe10cc567277507d1165a54 (patch) | |
tree | ece1fba1ff213fe5cd97870583ad21bfa244fdd4 | |
parent | 8baa65126e19af5ee9f3c07e7bb53da41c39e4b1 (diff) |
MIPS: Make phys_to_virt utilize __va()
The implementation is exactly the same, so avoid open-coding it in two
different locations.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
-rw-r--r-- | arch/mips/include/asm/io.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h index 6f5c86d2bab4..880048a54362 100644 --- a/arch/mips/include/asm/io.h +++ b/arch/mips/include/asm/io.h @@ -131,7 +131,7 @@ static inline phys_addr_t virt_to_phys(const volatile void *x) */ static inline void * phys_to_virt(unsigned long address) { - return (void *)(address + PAGE_OFFSET - PHYS_OFFSET); + return __va(address); } /* |