X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-arm26%2Fpgtable.h;h=fdebe15334054cc1e548d7474776ad64bebcfb0b;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=55b667aa7d2f846ea89f9cfd8d7af9953400d512;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/asm-arm26/pgtable.h b/include/asm-arm26/pgtable.h index 55b667aa7..fdebe1533 100644 --- a/include/asm-arm26/pgtable.h +++ b/include/asm-arm26/pgtable.h @@ -11,6 +11,8 @@ #ifndef _ASMARM_PGTABLE_H #define _ASMARM_PGTABLE_H +#include + #include #include @@ -288,9 +290,7 @@ static inline pte_t mk_pte_phys(unsigned long physpage, pgprot_t pgprot) * into virtual address `from' */ #define io_remap_page_range(vma,from,phys,size,prot) \ - remap_page_range(vma,from,phys,size,prot) - -typedef pte_t *pte_addr_t; + remap_pfn_range(vma, from, (phys) >> PAGE_SHIFT, size, prot) #endif /* !__ASSEMBLY__ */