Commit d88dc13a2463cac2a909d6b8570b7d47f88f1b6e

Authored by Michael Ellerman
Committed by Benjamin Herrenschmidt
1 parent 474e3d569b

powerpc/mm: Remove uses of abs_to_virt() and virt_to_abs()

These days they are just __va() and __pa() respectively.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

arch/powerpc/mm/stab.c
... ... @@ -20,7 +20,6 @@
20 20 #include <asm/paca.h>
21 21 #include <asm/cputable.h>
22 22 #include <asm/prom.h>
23   -#include <asm/abs_addr.h>
24 23  
25 24 struct stab_entry {
26 25 unsigned long esid_data;
... ... @@ -257,7 +256,7 @@
257 256 memset((void *)newstab, 0, HW_PAGE_SIZE);
258 257  
259 258 paca[cpu].stab_addr = newstab;
260   - paca[cpu].stab_real = virt_to_abs(newstab);
  259 + paca[cpu].stab_real = __pa(newstab);
261 260 printk(KERN_INFO "Segment table for CPU %d at 0x%llx "
262 261 "virtual, 0x%llx absolute\n",
263 262 cpu, paca[cpu].stab_addr, paca[cpu].stab_real);