MIPS: Fix build error due to multiple prom_putchar() definitions.
authorRalf Baechle <ralf@linux-mips.org>
Wed, 26 Mar 2014 20:40:25 +0000 (21:40 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 31 Mar 2014 08:16:52 +0000 (10:16 +0200)
This can happen if both the generic 8250 and another early console
driver are enable.  Fixed by using an auxilliary kconfig symbol to
restrict that choice.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Kconfig
arch/mips/Kconfig.debug

index 95fa1f1d5c8b4a70d3ee991e7a5bb32b5db22740..7111d74a01a0ecb378b0e82e86a1a18287d5ce7c 100644 (file)
@@ -123,7 +123,7 @@ config BCM47XX
        select SYS_SUPPORTS_32BIT_KERNEL
        select SYS_SUPPORTS_LITTLE_ENDIAN
        select SYS_HAS_EARLY_PRINTK
-       select EARLY_PRINTK_8250 if EARLY_PRINTK
+       select USE_GENERIC_EARLY_PRINTK_8250
        help
         Support for BCM47XX based boards
 
@@ -150,7 +150,6 @@ config MIPS_COBALT
        select CSRC_R4K
        select CEVT_GT641XX
        select DMA_NONCOHERENT
-       select EARLY_PRINTK_8250 if EARLY_PRINTK
        select HW_HAS_PCI
        select I8253
        select I8259
@@ -163,6 +162,7 @@ config MIPS_COBALT
        select SYS_SUPPORTS_32BIT_KERNEL
        select SYS_SUPPORTS_64BIT_KERNEL
        select SYS_SUPPORTS_LITTLE_ENDIAN
+       select USE_GENERIC_EARLY_PRINTK_8250
 
 config MACH_DECSTATION
        bool "DECstations"
@@ -674,6 +674,7 @@ config SNI_RM
        select SYS_SUPPORTS_BIG_ENDIAN
        select SYS_SUPPORTS_HIGHMEM
        select SYS_SUPPORTS_LITTLE_ENDIAN
+       select USE_GENERIC_EARLY_PRINTK_8250
        help
          The SNI RM200/300/400 are MIPS-based machines manufactured by
          Siemens Nixdorf Informationssysteme (SNI), parent company of Pyramid
index b147e7038ff0cb26042555ee6d10eafd8d070ca2..25de29211d766871f2d84716ae967f42eb29dcce 100644 (file)
@@ -21,13 +21,17 @@ config EARLY_PRINTK
          unless you want to debug such a crash.
 
 config EARLY_PRINTK_8250
-       bool "8250/16550 and compatible serial early printk driver"
-       depends on EARLY_PRINTK
-       default n
+       bool
+       depends on EARLY_PRINTK && USE_GENERIC_EARLY_PRINTK_8250
+       default y
        help
+         "8250/16550 and compatible serial early printk driver"
          If you say Y here, it will be possible to use a 8250/16550 serial
          port as the boot console.
 
+config USE_GENERIC_EARLY_PRINTK_8250
+       bool
+
 config CMDLINE_BOOL
        bool "Built-in kernel command line"
        default n