OSDN Git Service

drivers: tty: serial: IMX_EARLYCON: fix Kconfig dependency on SERIAL_CORE
authorJulian Braha <julianbraha@gmail.com>
Thu, 25 Feb 2021 04:42:48 +0000 (23:42 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:34:09 +0000 (09:34 +0100)
commit196ebe5c000afbfe67b8561f716e365174552bd7
tree785c07c9ce1ab5d32378b9a225eceb871edc0758
parent6bfbfcfc58005ee12d37b56a5e722618ef6bee8f
drivers: tty: serial: IMX_EARLYCON: fix Kconfig dependency on SERIAL_CORE

When SERIAL_IMX_EARLYCON is enabled, and SERIAL_CORE is disabled,
Kbuild gives the following warning:

WARNING: unmet direct dependencies detected for SERIAL_EARLYCON
  Depends on [n]: TTY [=y] && HAS_IOMEM [=y] && SERIAL_CORE [=n]
  Selected by [y]:
  - SERIAL_IMX_EARLYCON [=y] && TTY [=y] && HAS_IOMEM [=y] && (ARCH_MXC [=y] || COMPILE_TEST [=n]) && OF [=y]

This is because SERIAL_IMX_EARLYCON selects SERIAL_EARLYCON,
without selecting SERIAL_CORE, despite that config option depending
on SERIAL_CORE.

Signed-off-by: Julian Braha <julianbraha@gmail.com>
Link: https://lore.kernel.org/r/20210225044248.4745-1-julianbraha@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/Kconfig