[ARM] Remove PFN_TO_NID for !DISCONTIGMEM
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Thu, 15 Sep 2005 11:30:11 +0000 (12:30 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 15 Sep 2005 11:30:11 +0000 (12:30 +0100)
Platform classes need not define PFN_TO_NID when DISCONTIGMEM is
not selected.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/arch-aaec2000/memory.h
include/asm-arm/arch-iop3xx/memory.h
include/asm-arm/arch-lh7a40x/memory.h
include/asm-arm/arch-omap/memory.h
include/asm-arm/arch-pxa/memory.h
include/asm-arm/arch-sa1100/memory.h

index 681b6a6171a1cc3993fc32d458233824541444a1..79c90813bc3e6ff765f1a0776db126f3f5d981d0 100644 (file)
 #define NODE_MAX_MEM_SHIFT     26
 #define NODE_MAX_MEM_SIZE      (1 << NODE_MAX_MEM_SHIFT)
 
-#else
-
-#define PFN_TO_NID(addr)       (0)
-
 #endif /* CONFIG_DISCONTIGMEM */
 
 #endif /* __ASM_ARCH_MEMORY_H */
index dc4735cb0c10402273d8815578269e52ebcf278b..45351f5cd904ec1d4714faa8810136e2656c46f6 100644 (file)
@@ -36,6 +36,4 @@
 
 #endif
 
-#define PFN_TO_NID(addr)       (0)
-
 #endif
index 7e2fea372663b358a0520ad39cc9121786ee2322..c650e6feb9d5d490e231f8da974a2d68a89cbc84 100644 (file)
        (((unsigned long)(addr) & 0x01ffffff) >> PAGE_SHIFT)
 # endif
 
-#else
-
-# define PFN_TO_NID(addr)      (0)
-
 #endif
 
 #endif
index 84f81e315a25da0aa010154473dfbc272e1cfd8c..ef32d61eec7a20e8de6f8d0e170cadc74a06cfee 100644 (file)
@@ -86,6 +86,5 @@
 
 #endif /* CONFIG_ARCH_OMAP1510 */
 
-#define PHYS_TO_NID(addr) (0)
 #endif
 
index 217a80b820ff8290520083fb33ee7d08d9c85e23..58bad9748b5c4075400b297ca2a13bfd74a89b50 100644 (file)
 #define LOCAL_MAP_NR(addr) \
        (((unsigned long)(addr) & 0x03ffffff) >> PAGE_SHIFT)
 
-#else
-
-#define PFN_TO_NID(addr)       (0)
-
 #endif
 
 #endif
index 32d3d5bde34db286224f3e6817081eaaf291e585..8743ff5c1b233f12d763e54ef501b2090c0f5984 100644 (file)
@@ -99,10 +99,6 @@ __arch_adjust_zones(int node, unsigned long *size, unsigned long *holes)
 #define LOCAL_MAP_NR(addr) \
        (((unsigned long)(addr) & 0x07ffffff) >> PAGE_SHIFT)
 
-#else
-
-#define PFN_TO_NID(addr)       (0)
-
 #endif
 
 #endif