aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2007-05-08 03:30:57 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 14:15:13 -0400
commit0bb5e19d63cc1b09aed8aef3a20926ac435bb8e7 (patch)
treec6b2a03259a86ca96d3fac02fc0f2f05220e6682 /include/asm-arm
parent53f049fa5f18730b61faaee582ea0e045fd44f49 (diff)
Clean up mostly unused IOSPACE macros
Most architectures defined three macros, MK_IOSPACE_PFN(), GET_IOSPACE() and GET_PFN() in pgtable.h. However, the only callers of any of these macros are in Sparc specific code, either in arch/sparc, arch/sparc64 or drivers/sbus. This patch removes the redundant macros from all architectures except sparc and sparc64. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Cc: <linux-arch@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-arm')
-rw-r--r--include/asm-arm/pgtable-nommu.h4
-rw-r--r--include/asm-arm/pgtable.h4
2 files changed, 0 insertions, 8 deletions
diff --git a/include/asm-arm/pgtable-nommu.h b/include/asm-arm/pgtable-nommu.h
index 7b1c9acdf79a..0c8be19fd66b 100644
--- a/include/asm-arm/pgtable-nommu.h
+++ b/include/asm-arm/pgtable-nommu.h
@@ -83,10 +83,6 @@ extern int is_in_rom(unsigned long);
83#define io_remap_page_range remap_page_range 83#define io_remap_page_range remap_page_range
84#define io_remap_pfn_range remap_pfn_range 84#define io_remap_pfn_range remap_pfn_range
85 85
86#define MK_IOSPACE_PFN(space, pfn) (pfn)
87#define GET_IOSPACE(pfn) 0
88#define GET_PFN(pfn) (pfn)
89
90 86
91/* 87/*
92 * All 32bit addresses are effectively valid for vmalloc... 88 * All 32bit addresses are effectively valid for vmalloc...
diff --git a/include/asm-arm/pgtable.h b/include/asm-arm/pgtable.h
index 7b2bafce21a2..21dec9f258d8 100644
--- a/include/asm-arm/pgtable.h
+++ b/include/asm-arm/pgtable.h
@@ -395,10 +395,6 @@ extern pgd_t swapper_pg_dir[PTRS_PER_PGD];
395#define io_remap_pfn_range(vma,from,pfn,size,prot) \ 395#define io_remap_pfn_range(vma,from,pfn,size,prot) \
396 remap_pfn_range(vma, from, pfn, size, prot) 396 remap_pfn_range(vma, from, pfn, size, prot)
397 397
398#define MK_IOSPACE_PFN(space, pfn) (pfn)
399#define GET_IOSPACE(pfn) 0
400#define GET_PFN(pfn) (pfn)
401
402#define pgtable_cache_init() do { } while (0) 398#define pgtable_cache_init() do { } while (0)
403 399
404#endif /* !__ASSEMBLY__ */ 400#endif /* !__ASSEMBLY__ */