aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/drivers/pci/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/drivers/pci/pci.c')
-rw-r--r--arch/sh/drivers/pci/pci.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/sh/drivers/pci/pci.c b/arch/sh/drivers/pci/pci.c
index 84563e39a5b8..c99ee286b69f 100644
--- a/arch/sh/drivers/pci/pci.c
+++ b/arch/sh/drivers/pci/pci.c
@@ -269,27 +269,6 @@ void __ref pcibios_report_status(unsigned int status_mask, int warn)
269 } 269 }
270} 270}
271 271
272int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
273 enum pci_mmap_state mmap_state, int write_combine)
274{
275 /*
276 * I/O space can be accessed via normal processor loads and stores on
277 * this platform but for now we elect not to do this and portable
278 * drivers should not do this anyway.
279 */
280 if (mmap_state == pci_mmap_io)
281 return -EINVAL;
282
283 /*
284 * Ignore write-combine; for now only return uncached mappings.
285 */
286 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
287
288 return remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff,
289 vma->vm_end - vma->vm_start,
290 vma->vm_page_prot);
291}
292
293#ifndef CONFIG_GENERIC_IOMAP 272#ifndef CONFIG_GENERIC_IOMAP
294 273
295void __iomem *__pci_ioport_map(struct pci_dev *dev, 274void __iomem *__pci_ioport_map(struct pci_dev *dev,