remaining PAGE_SHARED
diff --git a/drivers/media/pci/meye/meye.c b/drivers/media/pci/meye/meye.c
index 8944e4b..d4ad7d1 100644
--- a/drivers/media/pci/meye/meye.c
+++ b/drivers/media/pci/meye/meye.c
@@ -1464,7 +1464,8 @@
 
 	while (size > 0) {
 		page = vmalloc_to_pfn((void *)pos);
-		if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED)) {
+		if (remap_pfn_range(vma, start, page, PAGE_SIZE,
+				    vma->vm_page_prot)) {
 			mutex_unlock(&meye.lock);
 			return -EAGAIN;
 		}
diff --git a/drivers/staging/media/atomisp/pci/atomisp_fops.c b/drivers/staging/media/atomisp/pci/atomisp_fops.c
index 453bb69..d9c5ae4 100644
--- a/drivers/staging/media/atomisp/pci/atomisp_fops.c
+++ b/drivers/staging/media/atomisp/pci/atomisp_fops.c
@@ -1037,7 +1037,7 @@
 	while (pgnr) {
 		pfn = hmm_virt_to_phys(isp_virt) >> PAGE_SHIFT;
 		if (remap_pfn_range(vma, host_virt, pfn,
-				    PAGE_SIZE, PAGE_SHARED)) {
+				    PAGE_SIZE, vma->vm_page_prot)) {
 			dev_err(isp->dev, "remap_pfn_range err.\n");
 			return -EAGAIN;
 		}
diff --git a/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c b/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
index f13af23..9a2e10df 100644
--- a/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
+++ b/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
@@ -1394,7 +1394,8 @@
 	virt = vma->vm_start;
 	for (i = 0; i < pgnr; i++) {
 		pfn = page_to_pfn(bo->page_obj[i].page);
-		if (remap_pfn_range(vma, virt, pfn, PAGE_SIZE, PAGE_SHARED)) {
+		if (remap_pfn_range(vma, virt, pfn, PAGE_SIZE,
+				    vma->vm_page_prot)) {
 			dev_warn(atomisp_dev,
 				 "remap_pfn_range failed: virt = 0x%x, pfn = 0x%x, mapped_pgnr = %d\n",
 				 virt, pfn, 1);