aboutsummaryrefslogtreecommitdiffstats
path: root/arch/unicore32/kernel/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/unicore32/kernel/pci.c')
-rw-r--r--arch/unicore32/kernel/pci.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/arch/unicore32/kernel/pci.c b/arch/unicore32/kernel/pci.c
index 62137d13c6f9..1053bca1f8aa 100644
--- a/arch/unicore32/kernel/pci.c
+++ b/arch/unicore32/kernel/pci.c
@@ -356,26 +356,3 @@ int pcibios_enable_device(struct pci_dev *dev, int mask)
356 } 356 }
357 return 0; 357 return 0;
358} 358}
359
360int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
361 enum pci_mmap_state mmap_state, int write_combine)
362{
363 unsigned long phys;
364
365 if (mmap_state == pci_mmap_io)
366 return -EINVAL;
367
368 phys = vma->vm_pgoff;
369
370 /*
371 * Mark this as IO
372 */
373 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
374
375 if (remap_pfn_range(vma, vma->vm_start, phys,
376 vma->vm_end - vma->vm_start,
377 vma->vm_page_prot))
378 return -EAGAIN;
379
380 return 0;
381}