]> Pileus Git - ~andy/linux/commitdiff
mfd: cros ec: spi: Depend on OF
authorThierry Reding <thierry.reding@gmail.com>
Mon, 9 Dec 2013 10:05:39 +0000 (11:05 +0100)
committerLee Jones <lee.jones@linaro.org>
Tue, 21 Jan 2014 08:28:04 +0000 (08:28 +0000)
The driver is not used on any non-DT platform, so it can depend on the
OF Kconfig symbol to make that explicit. This is in preparation of a
subsequent patch which parses some parameters from the device tree and
would otherwise have to conditionalize that code.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/Kconfig

index 1c2a389e6dc26dbc13109d6d56f0a7e167c61f0f..58ed055c1c08b7e93ecf85b5ae191e86c6ba7549 100644 (file)
@@ -80,7 +80,7 @@ config MFD_CROS_EC_I2C
 
 config MFD_CROS_EC_SPI
        tristate "ChromeOS Embedded Controller (SPI)"
-       depends on MFD_CROS_EC && SPI
+       depends on MFD_CROS_EC && SPI && OF
 
        ---help---
          If you say Y here, you get support for talking to the ChromeOS EC