Message ID | 20220607125027.44946-4-wangkefeng.wang@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | arm64: Cleanup ioremap() and support ioremap_prot() | expand |
diff --git a/mm/ioremap.c b/mm/ioremap.c index 2d754b48d230..e1d008e8f87f 100644 --- a/mm/ioremap.c +++ b/mm/ioremap.c @@ -33,6 +33,7 @@ void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size, if (!area) return NULL; vaddr = (unsigned long)area->addr; + area->phys_addr = phys_addr; if (ioremap_page_range(vaddr, vaddr + size, phys_addr, __pgprot(prot))) {