mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: Lee Jones <[email protected]>
This commit is contained in:
parent
5d5a7bffd0
commit
1422731dbc
5 changed files with 2 additions and 21 deletions
|
|
@ -1260,6 +1260,7 @@ config MFD_TIMBERDALE
|
|||
config MFD_TC3589X
|
||||
bool "Toshiba TC35892 and variants"
|
||||
depends on I2C=y
|
||||
depends on OF
|
||||
select MFD_CORE
|
||||
help
|
||||
Support for the Toshiba TC35892 and variants I/O Expander.
|
||||
|
|
|
|||
|
|
@ -318,7 +318,6 @@ static int tc3589x_device_init(struct tc3589x *tc3589x)
|
|||
return ret;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
static const struct of_device_id tc3589x_match[] = {
|
||||
/* Legacy compatible string */
|
||||
{ .compatible = "tc3589x", .data = (void *) TC3589X_UNKNOWN },
|
||||
|
|
@ -359,14 +358,6 @@ tc3589x_of_probe(struct device *dev, enum tc3589x_version *version)
|
|||
|
||||
return pdata;
|
||||
}
|
||||
#else
|
||||
static inline struct tc3589x_platform_data *
|
||||
tc3589x_of_probe(struct device *dev, enum tc3589x_version *version)
|
||||
{
|
||||
dev_err(dev, "no device tree support\n");
|
||||
return ERR_PTR(-ENODEV);
|
||||
}
|
||||
#endif
|
||||
|
||||
static int tc3589x_probe(struct i2c_client *i2c,
|
||||
const struct i2c_device_id *id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue