[PATCH] ppc64: pgtable.h and other header cleanups
[firefly-linux-kernel-4.4.55.git] / arch / ppc64 / kernel / pci.c
index be3cc387c1ec4bcb18dcac51dd0befef0c588558..d786d4b6af0b2a78403d4bb1325b9f2c2be414fe 100644 (file)
@@ -438,7 +438,7 @@ pgprot_t pci_phys_mem_access_prot(struct file *file,
        int i;
 
        if (page_is_ram(offset >> PAGE_SHIFT))
-               return prot;
+               return __pgprot(prot);
 
        prot |= _PAGE_NO_CACHE | _PAGE_GUARDED;