From: Jakub Kicinski Date: Wed, 1 Jul 2015 12:19:52 +0000 (+0200) Subject: sc16is7xx: fix Kconfig dependencies X-Git-Tag: v4.2~137^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=32aa6339d9c5156de5d881b103e0e360934d6a74;p=platform%2Fkernel%2Flinux-amlogic.git sc16is7xx: fix Kconfig dependencies When I2C=m and SPI=y or-ing them will produce =y while what we need is the lower bound, i.e. =m. Fortunately SPI is a boolean so we need to handle only one special case. Reported-by: kbuild test robot Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index 76e65b7..15b4079 100644 --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig @@ -1185,7 +1185,7 @@ config SERIAL_SC16IS7XX_CORE config SERIAL_SC16IS7XX tristate "SC16IS7xx serial support" select SERIAL_CORE - depends on I2C || SPI_MASTER + depends on (SPI_MASTER && !I2C) || I2C help This selects support for SC16IS7xx serial ports. Supported ICs are SC16IS740, SC16IS741, SC16IS750, SC16IS752,