mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
remove ioremap_nocache and devm_ioremap_nocache
ioremap has provided non-cached semantics by default since the Linux 2.6 days, so remove the additional ioremap_nocache interface. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
@@ -66,8 +66,6 @@ void __iomem *devm_ioremap(struct device *dev, resource_size_t offset,
|
||||
resource_size_t size);
|
||||
void __iomem *devm_ioremap_uc(struct device *dev, resource_size_t offset,
|
||||
resource_size_t size);
|
||||
void __iomem *devm_ioremap_nocache(struct device *dev, resource_size_t offset,
|
||||
resource_size_t size);
|
||||
void __iomem *devm_ioremap_wc(struct device *dev, resource_size_t offset,
|
||||
resource_size_t size);
|
||||
void devm_iounmap(struct device *dev, void __iomem *addr);
|
||||
@@ -87,7 +85,7 @@ void *__devm_memremap_pages(struct device *dev, struct resource *res);
|
||||
* Posting") mandate non-posted configuration transactions. There is
|
||||
* no ioremap API in the kernel that can guarantee non-posted write
|
||||
* semantics across arches so provide a default implementation for
|
||||
* mapping PCI config space that defaults to ioremap_nocache(); arches
|
||||
* mapping PCI config space that defaults to ioremap(); arches
|
||||
* should override it if they have memory mapping implementations that
|
||||
* guarantee non-posted writes semantics to make the memory mapping
|
||||
* compliant with the PCI specification.
|
||||
@@ -97,7 +95,7 @@ void *__devm_memremap_pages(struct device *dev, struct resource *res);
|
||||
static inline void __iomem *pci_remap_cfgspace(phys_addr_t offset,
|
||||
size_t size)
|
||||
{
|
||||
return ioremap_nocache(offset, size);
|
||||
return ioremap(offset, size);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user