projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8baa651
)
MIPS: Make phys_to_virt utilize __va()
author
Florian Fainelli
<f.fainelli@gmail.com>
Thu, 7 Jul 2022 20:37:42 +0000
(13:37 -0700)
committer
Thomas Bogendoerfer
<tsbogend@alpha.franken.de>
Mon, 11 Jul 2022 08:33:18 +0000
(10:33 +0200)
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>
arch/mips/include/asm/io.h
patch
|
blob
|
history
diff --git
a/arch/mips/include/asm/io.h
b/arch/mips/include/asm/io.h
index 6f5c86d2bab45fca840786ee07d8bff6560970f4..880048a5436226d6a7473faa8b6d87d72f0f0b35 100644
(file)
--- 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
);
}
/*