mfd: cros_ec: Add MFD_CORE dependency
authorDavid Rientjes <rientjes@google.com>
Thu, 21 Mar 2013 19:08:33 +0000 (12:08 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 5 Apr 2013 09:20:14 +0000 (11:20 +0200)
CONFIG_MFD_CROS_EC requires CONFIG_MFD_CORE for a couple of functions that
are declared but not defined:

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

Fix it by selecting CONFIG_MFD_CORE anytime CONFIG_MFD_CROS_EC is enabled.

Signed-off-by: David Rientjes <rientjes@google.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/Kconfig

index 94b45476893e2566905fb2b5010c5bd46f490a4b..67e56dcdcbf66aba87c4e4c1cc5fa80598b8613f 100644 (file)
@@ -23,6 +23,7 @@ config MFD_88PM860X
 
 config MFD_CROS_EC
        tristate "Support ChromeOS Embedded Controller"
+       select MFD_CORE
        help
          If you say Y here you get support for the ChromeOS Embedded
          Controller (EC) providing keyboard, battery and power services.