瀏覽代碼

serial: fsl_lpuart: Fix earlycon support

Earlycon support for Freescale lpuart should only be enabled when
console support is enabled.

Fixes: 1d59b382f1c4 ("serial: fsl_lpuart: add earlycon support")
Acked-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Peter Hurley 9 年之前
父節點
當前提交
bec8bf61dc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/tty/serial/Kconfig

+ 1 - 1
drivers/tty/serial/Kconfig

@@ -1539,7 +1539,6 @@ config SERIAL_FSL_LPUART
 	tristate "Freescale lpuart serial port support"
 	tristate "Freescale lpuart serial port support"
 	depends on HAS_DMA
 	depends on HAS_DMA
 	select SERIAL_CORE
 	select SERIAL_CORE
-	select SERIAL_EARLYCON
 	help
 	help
 	  Support for the on-chip lpuart on some Freescale SOCs.
 	  Support for the on-chip lpuart on some Freescale SOCs.
 
 
@@ -1547,6 +1546,7 @@ config SERIAL_FSL_LPUART_CONSOLE
 	bool "Console on Freescale lpuart serial port"
 	bool "Console on Freescale lpuart serial port"
 	depends on SERIAL_FSL_LPUART=y
 	depends on SERIAL_FSL_LPUART=y
 	select SERIAL_CORE_CONSOLE
 	select SERIAL_CORE_CONSOLE
+	select SERIAL_EARLYCON
 	help
 	help
 	  If you have enabled the lpuart serial port on the Freescale SoCs,
 	  If you have enabled the lpuart serial port on the Freescale SoCs,
 	  you can make it the console by answering Y to this option.
 	  you can make it the console by answering Y to this option.