powerpc: remove __ioremap_at and __iounmap_at
[linux-2.6-microblaze.git] / arch / powerpc / mm / ioremap_64.c
index 50a99d9..ba5cbb0 100644 (file)
@@ -4,56 +4,6 @@
 #include <linux/slab.h>
 #include <linux/vmalloc.h>
 
-/**
- * Low level function to establish the page tables for an IO mapping
- */
-void __iomem *__ioremap_at(phys_addr_t pa, void *ea, unsigned long size, pgprot_t prot)
-{
-       int ret;
-       unsigned long va = (unsigned long)ea;
-
-       /* We don't support the 4K PFN hack with ioremap */
-       if (pgprot_val(prot) & H_PAGE_4K_PFN)
-               return NULL;
-
-       if ((ea + size) >= (void *)IOREMAP_END) {
-               pr_warn("Outside the supported range\n");
-               return NULL;
-       }
-
-       WARN_ON(pa & ~PAGE_MASK);
-       WARN_ON(((unsigned long)ea) & ~PAGE_MASK);
-       WARN_ON(size & ~PAGE_MASK);
-
-       if (slab_is_available()) {
-               ret = ioremap_page_range(va, va + size, pa, prot);
-               if (ret)
-                       unmap_kernel_range(va, size);
-       } else {
-               ret = early_ioremap_range(va, pa, size, prot);
-       }
-
-       if (ret)
-               return NULL;
-
-       return (void __iomem *)ea;
-}
-EXPORT_SYMBOL(__ioremap_at);
-
-/**
- * Low level function to tear down the page tables for an IO mapping. This is
- * used for mappings that are manipulated manually, like partial unmapping of
- * PCI IOs or ISA space.
- */
-void __iounmap_at(void *ea, unsigned long size)
-{
-       WARN_ON(((unsigned long)ea) & ~PAGE_MASK);
-       WARN_ON(size & ~PAGE_MASK);
-
-       unmap_kernel_range((unsigned long)ea, size);
-}
-EXPORT_SYMBOL(__iounmap_at);
-
 void __iomem *__ioremap_caller(phys_addr_t addr, unsigned long size,
                               pgprot_t prot, void *caller)
 {