diff options
Diffstat (limited to 'arch/arm/mm')
-rw-r--r-- | arch/arm/mm/iomap.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/arm/mm/iomap.c b/arch/arm/mm/iomap.c index 430df1a5978d..e62956e12030 100644 --- a/arch/arm/mm/iomap.c +++ b/arch/arm/mm/iomap.c | |||
@@ -35,27 +35,6 @@ EXPORT_SYMBOL(pcibios_min_mem); | |||
35 | unsigned int pci_flags = PCI_REASSIGN_ALL_RSRC; | 35 | unsigned int pci_flags = PCI_REASSIGN_ALL_RSRC; |
36 | EXPORT_SYMBOL(pci_flags); | 36 | EXPORT_SYMBOL(pci_flags); |
37 | 37 | ||
38 | void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen) | ||
39 | { | ||
40 | resource_size_t start = pci_resource_start(dev, bar); | ||
41 | resource_size_t len = pci_resource_len(dev, bar); | ||
42 | unsigned long flags = pci_resource_flags(dev, bar); | ||
43 | |||
44 | if (!len || !start) | ||
45 | return NULL; | ||
46 | if (maxlen && len > maxlen) | ||
47 | len = maxlen; | ||
48 | if (flags & IORESOURCE_IO) | ||
49 | return ioport_map(start, len); | ||
50 | if (flags & IORESOURCE_MEM) { | ||
51 | if (flags & IORESOURCE_CACHEABLE) | ||
52 | return ioremap(start, len); | ||
53 | return ioremap_nocache(start, len); | ||
54 | } | ||
55 | return NULL; | ||
56 | } | ||
57 | EXPORT_SYMBOL(pci_iomap); | ||
58 | |||
59 | void pci_iounmap(struct pci_dev *dev, void __iomem *addr) | 38 | void pci_iounmap(struct pci_dev *dev, void __iomem *addr) |
60 | { | 39 | { |
61 | if ((unsigned long)addr >= VMALLOC_START && | 40 | if ((unsigned long)addr >= VMALLOC_START && |