diff mbox

[POC,09/16] drm/img-rogue: translate pgprot_t to pgprot value for __pgprot_modify()

Message ID 1510759463-30201-10-git-send-email-ulrich.hecht+renesas@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ulrich Hecht Nov. 15, 2017, 3:24 p.m. UTC
Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
---
 drivers/gpu/drm/img-rogue/1.6/pmr_os.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/drivers/gpu/drm/img-rogue/1.6/pmr_os.c b/drivers/gpu/drm/img-rogue/1.6/pmr_os.c
index 595f772..9526359 100644
--- a/drivers/gpu/drm/img-rogue/1.6/pmr_os.c
+++ b/drivers/gpu/drm/img-rogue/1.6/pmr_os.c
@@ -253,7 +253,7 @@  OSMMapPMRGeneric(PMR *psPMR, PMR_MMAP_DATA pOSMMapData)
 	ps_vma->vm_flags = ulNewFlags;
 
 #if defined (CONFIG_ARM64)
-	sPageProt = __pgprot_modify(ps_vma->vm_page_prot, 0, vm_get_page_prot(ulNewFlags));
+	sPageProt = __pgprot_modify(ps_vma->vm_page_prot, 0, pgprot_val(vm_get_page_prot(ulNewFlags)));
 #elif defined(CONFIG_ARM)
 	sPageProt = __pgprot_modify(ps_vma->vm_page_prot, L_PTE_MT_MASK, vm_get_page_prot(ulNewFlags));
 #elif defined(CONFIG_X86)