mfd: Fix lpc_sch related depends/selects, fix build error

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Sunday, March 7, 2010 - 6:04 pm

Gitweb:     http://git.kernel.org/linus/860fb8c134ebca9be8bc2ddd2b13e19ac10c192e
Commit:     860fb8c134ebca9be8bc2ddd2b13e19ac10c192e
Parent:     8e7aafe41be2a7cd5c181ed68876e9ec55ccdba7
Author:     Randy Dunlap <randy.dunlap@oracle.com>
AuthorDate: Fri Mar 5 09:43:06 2010 -0800
Committer:  Samuel Ortiz <sameo@linux.intel.com>
CommitDate: Sun Mar 7 22:17:38 2010 +0100

    mfd: Fix lpc_sch related depends/selects, fix build error
    
    LPC_SCH is selected by GPI_SCH and I2C_ISCH, even when PCI is not
    enabled, but LPC_SCH depends on PCI, so make GPI_SCH and I2C_ISCH
    also depend on PCI.
    
    Those 2 selects also need to select what LPC_SCH selects,
    since kconfig does not follow selects.
    
    Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
    Cc: Denis Turischev <denis@compulab.co.il>
    Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
---
 drivers/gpio/Kconfig       |    3 ++-
 drivers/i2c/busses/Kconfig |    2 ++
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 60cb363..fee678f 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -96,7 +96,8 @@ config GPIO_VR41XX
 
 config GPIO_SCH
 	tristate "Intel SCH GPIO"
-	depends on GPIOLIB
+	depends on GPIOLIB && PCI
+	select MFD_CORE
 	select LPC_SCH
 	help
 	  Say yes here to support GPIO interface on Intel Poulsbo SCH.
diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index f22eff1..4cd1ff7 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -105,6 +105,8 @@ config I2C_I801
 
 config I2C_ISCH
 	tristate "Intel SCH SMBus 1.0"
+	depends on PCI
+	select MFD_CORE
 	select LPC_SCH
 	help
 	  Say Y here if you want to use SMBus controller on the Intel SCH
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
mfd: Fix lpc_sch related depends/selects, fix build error, Linux Kernel Mailing ..., (Sun Mar 7, 6:04 pm)