ioremap has provided non-cached semantics by default since the Linux 2.6 days, so remove the additional ioremap_nocache interface.
Showing the changes to include/linux (1 of 368 files). Show all
Unified · Split
| @@ -66,8 +66,6 @@ void __iomem *devm_ioremap(struct device *dev, resource_size_t offset, · 65 unmodified lines | ||
| 66 | 66 | resource_size_t size); |
| 67 | 67 | void __iomem *devm_ioremap_uc(struct device *dev, resource_size_t offset, |
| 68 | 68 | resource_size_t size); |
| 69 | −void __iomem *devm_ioremap_nocache(struct device *dev, resource_size_t offset, | |
| 70 | − resource_size_t size); | |
| 71 | 69 | void __iomem *devm_ioremap_wc(struct device *dev, resource_size_t offset, |
| 72 | 70 | resource_size_t size); |
| 73 | 71 | void devm_iounmap(struct device *dev, void __iomem *addr); |
| @@ -87,7 +85,7 @@ void *__devm_memremap_pages(struct device *dev, struct resource *res); · 13 unmodified lines | ||
| 87 | 85 | * Posting") mandate non-posted configuration transactions. There is |
| 88 | 86 | * no ioremap API in the kernel that can guarantee non-posted write |
| 89 | 87 | * semantics across arches so provide a default implementation for |
| 90 | − * mapping PCI config space that defaults to ioremap_nocache(); arches | |
| 88 | + * mapping PCI config space that defaults to ioremap(); arches | |
| 91 | 89 | * should override it if they have memory mapping implementations that |
| 92 | 90 | * guarantee non-posted writes semantics to make the memory mapping |
| 93 | 91 | * compliant with the PCI specification. |
| @@ -97,7 +95,7 @@ void *__devm_memremap_pages(struct device *dev, struct resource *res); · 3 unmodified lines | ||
| 97 | 95 | static inline void __iomem *pci_remap_cfgspace(phys_addr_t offset, |
| 98 | 96 | size_t size) |
| 99 | 97 | { |
| 100 | − return ioremap_nocache(offset, size); | |
| 98 | + return ioremap(offset, size); | |
| 101 | 99 | } |
| 102 | 100 | #endif |
| 103 | 101 | #endif |