aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2011-09-02 10:43:36 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2011-10-24 08:09:13 -0400
commit8a0a8e8e42a4e30a1fc4c40205fa790e264d00f3 (patch)
treebeec367a4124f66e803a2c24f9f3345aa7297721 /drivers
parentb46880e57b4c513adeb2608c3700b352860b5662 (diff)
mfd: remove CONFIG_MFD_SUPPORT
We currently have two symbols to control compilation the MFD subsystem, MFD_SUPPORT and MFD_CORE. The MFD_SUPPORT is actually not required at all, it only hides the submenu when not set, with the effect that Kconfig warns about missing dependencies when another driver selects an MFD driver while MFD_SUPPORT is disabled. Turning the MFD submenu back from menuconfig into a plain menu simplifies the Kconfig syntax for those kinds of users and avoids the surprise when the menu suddenly appears because another driver was enabled that selects this symbol. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpio/Kconfig3
-rw-r--r--drivers/i2c/busses/Kconfig1
-rw-r--r--drivers/media/radio/Kconfig1
-rw-r--r--drivers/mfd/Kconfig22
4 files changed, 5 insertions, 22 deletions
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index d539efd96d4..fbc5fd449a0 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -180,7 +180,7 @@ config GPIO_SCH
180 180
181config GPIO_VX855 181config GPIO_VX855
182 tristate "VIA VX855/VX875 GPIO" 182 tristate "VIA VX855/VX875 GPIO"
183 depends on MFD_SUPPORT && PCI 183 depends on PCI
184 select MFD_CORE 184 select MFD_CORE
185 select MFD_VX855 185 select MFD_VX855
186 help 186 help
@@ -417,7 +417,6 @@ config GPIO_TIMBERDALE
417config GPIO_RDC321X 417config GPIO_RDC321X
418 tristate "RDC R-321x GPIO support" 418 tristate "RDC R-321x GPIO support"
419 depends on PCI 419 depends on PCI
420 select MFD_SUPPORT
421 select MFD_CORE 420 select MFD_CORE
422 select MFD_RDC321X 421 select MFD_RDC321X
423 help 422 help
diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index 646068e5100..d625a484fa8 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -110,7 +110,6 @@ config I2C_I801
110config I2C_ISCH 110config I2C_ISCH
111 tristate "Intel SCH SMBus 1.0" 111 tristate "Intel SCH SMBus 1.0"
112 depends on PCI 112 depends on PCI
113 select MFD_CORE
114 select LPC_SCH 113 select LPC_SCH
115 help 114 help
116 Say Y here if you want to use SMBus controller on the Intel SCH 115 Say Y here if you want to use SMBus controller on the Intel SCH
diff --git a/drivers/media/radio/Kconfig b/drivers/media/radio/Kconfig
index 52798a111e1..ccd5f0d8a01 100644
--- a/drivers/media/radio/Kconfig
+++ b/drivers/media/radio/Kconfig
@@ -426,7 +426,6 @@ config RADIO_TIMBERDALE
426config RADIO_WL1273 426config RADIO_WL1273
427 tristate "Texas Instruments WL1273 I2C FM Radio" 427 tristate "Texas Instruments WL1273 I2C FM Radio"
428 depends on I2C && VIDEO_V4L2 428 depends on I2C && VIDEO_V4L2
429 select MFD_CORE
430 select MFD_WL1273_CORE 429 select MFD_WL1273_CORE
431 select FW_LOADER 430 select FW_LOADER
432 ---help--- 431 ---help---
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index 9c1347dc7a4..ac8bd4feb04 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -2,23 +2,8 @@
2# Multifunction miscellaneous devices 2# Multifunction miscellaneous devices
3# 3#
4 4
5menuconfig MFD_SUPPORT 5if HAS_IOMEM
6 bool "Multifunction device drivers" 6menu "Multifunction device drivers"
7 depends on HAS_IOMEM
8 default y
9 help
10 Multifunction devices embed several functions (e.g. GPIOs,
11 touchscreens, keyboards, current regulators, power management chips,
12 etc...) in one single integrated circuit. They usually talk to the
13 main CPU through one or more IRQ lines and low speed data busses (SPI,
14 I2C, etc..). They appear as one single device to the main system
15 through the data bus and the MFD framework allows for sub devices
16 (a.k.a. functions) to appear as discrete platform devices.
17 MFDs are typically found on embedded platforms.
18
19 This option alone does not add any kernel code.
20
21if MFD_SUPPORT
22 7
23config MFD_CORE 8config MFD_CORE
24 tristate 9 tristate
@@ -772,7 +757,8 @@ config MFD_AAT2870_CORE
772 additional drivers must be enabled in order to use the 757 additional drivers must be enabled in order to use the
773 functionality of the device. 758 functionality of the device.
774 759
775endif # MFD_SUPPORT 760endmenu
761endif
776 762
777menu "Multimedia Capabilities Port drivers" 763menu "Multimedia Capabilities Port drivers"
778 depends on ARCH_SA1100 764 depends on ARCH_SA1100