From: Catalin Marinas Date: Fri, 27 May 2011 09:10:22 +0000 (+0100) Subject: fixup! ARM: pgtable: switch to use pgtable-nopud.h X-Git-Tag: next-20110726~88^2~22 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a3503f80376dc99416768da0427962b4e75c7b28;p=karo-tx-linux.git fixup! ARM: pgtable: switch to use pgtable-nopud.h Signed-off-by: Catalin Marinas --- diff --git a/arch/arm/mm/ioremap.c b/arch/arm/mm/ioremap.c index ab506272b2d3..0da009121240 100644 --- a/arch/arm/mm/ioremap.c +++ b/arch/arm/mm/ioremap.c @@ -83,7 +83,8 @@ static void unmap_area_sections(unsigned long virt, unsigned long size) flush_cache_vunmap(addr, end); pgd = pgd_offset_k(addr); do { - pmd_t pmd, *pmdp = pmd_offset(pgd, addr); + pud_t *pud = pud_offset(pgd, addr); + pmd_t pmd, *pmdp = pmd_offset(pud, addr); pmd = *pmdp; if (!pmd_none(pmd)) { @@ -133,7 +134,8 @@ remap_area_sections(unsigned long virt, unsigned long pfn, pgd = pgd_offset_k(addr); do { - pmd_t *pmd = pmd_offset(pgd, addr); + pud_t *pud = pud_offset(pgd, addr); + pmd_t *pmd = pmd_offset(pud, addr); pmd[0] = __pmd(__pfn_to_phys(pfn) | type->prot_sect); pfn += SZ_1M >> PAGE_SHIFT; @@ -170,7 +172,8 @@ remap_area_supersections(unsigned long virt, unsigned long pfn, super_pmd_val |= ((pfn >> (32 - PAGE_SHIFT)) & 0xf) << 20; for (i = 0; i < 8; i++) { - pmd_t *pmd = pmd_offset(pgd, addr); + pud_t *pud = pud_offset(pgd, addr); + pmd_t *pmd = pmd_offset(pud, addr); pmd[0] = __pmd(super_pmd_val); pmd[1] = __pmd(super_pmd_val);