[PATCH] MIPS: bcm47xx: Move the BCM47XX board types under a choice symbol

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Since the build system expects one of the two types to be selected,
it's better if we move these symbols under a new choice symbol.
Moreover, this fixes the following build problem when no board is
selected:

In file included from arch/mips/bcm47xx/irq.c:32:0:
./arch/mips/include/asm/mach-bcm47xx/bcm47xx.h:34:1: error: expected identifier
before '}' token };
                 ^
Cc: "Rafał Miłecki" <zajec5@xxxxxxxxx>
Signed-off-by: Markos Chandras <markos.chandras@xxxxxxxxxx>
---
 arch/mips/bcm47xx/Kconfig | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/mips/bcm47xx/Kconfig b/arch/mips/bcm47xx/Kconfig
index fc21d3659fa0..39e24407709e 100644
--- a/arch/mips/bcm47xx/Kconfig
+++ b/arch/mips/bcm47xx/Kconfig
@@ -1,5 +1,9 @@
 if BCM47XX
 
+choice
+	prompt "Board type"
+	default BCM47XX_SSB
+
 config BCM47XX_SSB
 	bool "SSB Support for Broadcom BCM47XX"
 	select SYS_HAS_CPU_BMIPS32_3300
@@ -34,4 +38,6 @@ config BCM47XX_BCMA
 
 	 This will generate an image with support for BCMA and MIPS32 R2 instruction set.
 
+endchoice
+
 endif
-- 
2.3.5






[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux