arm64: remove dead code
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / mm / mmu.c
index 82d3435bf14ffdf91fccb2e4857a1028c22750b6..63012fed46fc04ce0eecb48791ec82e46f4ef101 100644 (file)
@@ -117,7 +117,7 @@ void split_pud(pud_t *old_pud, pmd_t *pmd)
        int i = 0;
 
        do {
-               set_pmd(pmd, __pmd(addr | prot));
+               set_pmd(pmd, __pmd(addr | pgprot_val(prot)));
                addr += PMD_SIZE;
        } while (pmd++, i++, i < PTRS_PER_PMD);
 }
@@ -460,17 +460,6 @@ void __init paging_init(void)
        cpu_set_default_tcr_t0sz();
 }
 
-/*
- * Enable the identity mapping to allow the MMU disabling.
- */
-void setup_mm_for_reboot(void)
-{
-       cpu_set_reserved_ttbr0();
-       flush_tlb_all();
-       cpu_set_idmap_tcr_t0sz();
-       cpu_switch_mm(idmap_pg_dir, &init_mm);
-}
-
 /*
  * Check whether a kernel address is valid (derived from arch/x86/).
  */