]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mfd: Select MFD_CORE if TPS6105X driver is configured
authorGuenter Roeck <guenter.roeck@ericsson.com>
Thu, 24 Mar 2011 19:12:47 +0000 (12:12 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Sat, 26 Mar 2011 23:09:38 +0000 (00:09 +0100)
The TPS61050/61052 driver uses MFD core code, yet does not specify the
dependency in Kconfig. If it is the only MFD driver configured, compilation
fails with

ERROR: "mfd_add_devices" [drivers/mfd/tps6105x.ko] undefined!
ERROR: "mfd_remove_devices" [drivers/mfd/tps6105x.ko] undefined!

Fix the problem by adding "select MFD_CORE" to the respective Kconfig entry.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/Kconfig

index a9a1af49281eea983265c3084c6a1f8bed1585a9..e986f91fff9c43b323a2cac525f1a982ccbf0728 100644 (file)
@@ -133,6 +133,7 @@ config TPS6105X
        tristate "TPS61050/61052 Boost Converters"
        depends on I2C
        select REGULATOR
+       select MFD_CORE
        select REGULATOR_FIXED_VOLTAGE
        help
          This option enables a driver for the TP61050/TPS61052