diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-12-11 14:04:00 +0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-12-13 12:52:02 +0400 |
commit | 958cab0fbe13dc89b6f779d495fed283c0e7de5a (patch) | |
tree | 763ba2736c49661cafcf7e157879c53e41d121e5 /arch/arm/include | |
parent | b4244738d20a631cd27fa105a2db71622618ab4e (diff) | |
download | linux-958cab0fbe13dc89b6f779d495fed283c0e7de5a.tar.xz |
ARM: Allow Kconfig to control the definition of NR_BANKS
Move the sizing of NR_BANKS to a Kconfig control instead of selecting
it in a header file depending on platform selection. This allows new
additions to its dependencies to be handled more gracefully.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/setup.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/include/asm/setup.h b/arch/arm/include/asm/setup.h index 915696dd9c7c..23ebc0c82a39 100644 --- a/arch/arm/include/asm/setup.h +++ b/arch/arm/include/asm/setup.h @@ -192,11 +192,7 @@ static const struct tagtable __tagtable_##fn __tag = { tag, fn } /* * Memory map description */ -#ifdef CONFIG_ARCH_EP93XX -# define NR_BANKS 16 -#else -# define NR_BANKS 8 -#endif +#define NR_BANKS CONFIG_ARM_NR_BANKS struct membank { phys_addr_t start; |