Commit ac5d8c02 authored by Thiemo Seufer's avatar Thiemo Seufer Committed by Ralf Baechle

Use fixed up pfn.

Signed-off-by: default avatarThiemo Seufer <ths@networkno.de>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 2b07bd02
...@@ -372,7 +372,7 @@ static inline int io_remap_pfn_range(struct vm_area_struct *vma, ...@@ -372,7 +372,7 @@ static inline int io_remap_pfn_range(struct vm_area_struct *vma,
pgprot_t prot) pgprot_t prot)
{ {
phys_t phys_addr_high = fixup_bigphys_addr(pfn << PAGE_SHIFT, size); phys_t phys_addr_high = fixup_bigphys_addr(pfn << PAGE_SHIFT, size);
return remap_pfn_range(vma, vaddr, pfn, size, prot); return remap_pfn_range(vma, vaddr, phys_addr_high >> PAGE_SHIFT, size, prot);
} }
#else #else
#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment