aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2015-03-19 10:52:45 -0400
committerLee Jones <lee.jones@linaro.org>2015-03-26 10:20:17 -0400
commit1422731dbc14063fc7083cb090108c0d95267361 (patch)
treee0e2bd85c768f78d1c17b8f38c262a2df660d947 /drivers/mfd
parent5d5a7bffd02863a526abad7700c18b96d4cae19e (diff)
mfd: tc3589x: Enforce device-tree only mode
All systems using the TC3589x multifunction expander uses devicetree, so don't clutter the place with a lot of and assume it is there. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/Kconfig1
-rw-r--r--drivers/mfd/tc3589x.c9
2 files changed, 1 insertions, 9 deletions
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index 5e68fdef64e7..ba097f7ce26f 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -1260,6 +1260,7 @@ config MFD_TIMBERDALE
1260config MFD_TC3589X 1260config MFD_TC3589X
1261 bool "Toshiba TC35892 and variants" 1261 bool "Toshiba TC35892 and variants"
1262 depends on I2C=y 1262 depends on I2C=y
1263 depends on OF
1263 select MFD_CORE 1264 select MFD_CORE
1264 help 1265 help
1265 Support for the Toshiba TC35892 and variants I/O Expander. 1266 Support for the Toshiba TC35892 and variants I/O Expander.
diff --git a/drivers/mfd/tc3589x.c b/drivers/mfd/tc3589x.c
index aacb3720065c..cf356395c9e9 100644
--- a/drivers/mfd/tc3589x.c
+++ b/drivers/mfd/tc3589x.c
@@ -318,7 +318,6 @@ static int tc3589x_device_init(struct tc3589x *tc3589x)
318 return ret; 318 return ret;
319} 319}
320 320
321#ifdef CONFIG_OF
322static const struct of_device_id tc3589x_match[] = { 321static const struct of_device_id tc3589x_match[] = {
323 /* Legacy compatible string */ 322 /* Legacy compatible string */
324 { .compatible = "tc3589x", .data = (void *) TC3589X_UNKNOWN }, 323 { .compatible = "tc3589x", .data = (void *) TC3589X_UNKNOWN },
@@ -359,14 +358,6 @@ tc3589x_of_probe(struct device *dev, enum tc3589x_version *version)
359 358
360 return pdata; 359 return pdata;
361} 360}
362#else
363static inline struct tc3589x_platform_data *
364tc3589x_of_probe(struct device *dev, enum tc3589x_version *version)
365{
366 dev_err(dev, "no device tree support\n");
367 return ERR_PTR(-ENODEV);
368}
369#endif
370 361
371static int tc3589x_probe(struct i2c_client *i2c, 362static int tc3589x_probe(struct i2c_client *i2c,
372 const struct i2c_device_id *id) 363 const struct i2c_device_id *id)