]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
avr32: move NODES_SHIFT into Kconfig and delete numnodes.h
authorHans-Christian Egtvedt <egtvedt@samfundet.no>
Mon, 13 May 2013 20:13:59 +0000 (22:13 +0200)
committerHans-Christian Egtvedt <egtvedt@samfundet.no>
Mon, 13 May 2013 20:13:59 +0000 (22:13 +0200)
This patch moves the NODES_SHIFT symbol into Kconfig to synchronize AVR32
architecture with the current kernel. The global header files do longer use the
value from numnodes.h.

See commit c80d79d746cc48bd94b0ce4f6d4f3c90cd403aaf for details.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
arch/avr32/Kconfig
arch/avr32/include/asm/numnodes.h [deleted file]

index 22c40308360bb0a76071db11c5493ecd09aff6af..ba4d40569f9ef9532cbfea9fde98a5a57630dd0a 100644 (file)
@@ -208,6 +208,11 @@ config ARCH_DISCONTIGMEM_ENABLE
 config ARCH_SPARSEMEM_ENABLE
        def_bool n
 
+config NODES_SHIFT
+       int
+       default "2"
+       depends on NEED_MULTIPLE_NODES
+
 source "mm/Kconfig"
 
 config OWNERSHIP_TRACE
diff --git a/arch/avr32/include/asm/numnodes.h b/arch/avr32/include/asm/numnodes.h
deleted file mode 100644 (file)
index 0b864d7..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#ifndef __ASM_AVR32_NUMNODES_H
-#define __ASM_AVR32_NUMNODES_H
-
-/* Max 4 nodes */
-#define NODES_SHIFT    2
-
-#endif /* __ASM_AVR32_NUMNODES_H */