mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -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]> Acked-by: Lee Jones <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
This commit is contained in:
parent
8b6f53c2f6
commit
61125591e1
5 changed files with 2 additions and 21 deletions
|
|
@ -318,7 +318,6 @@ static void tc3589x_keypad_close(struct input_dev *input)
|
|||
tc3589x_keypad_disable(keypad);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
static const struct tc3589x_keypad_platform_data *
|
||||
tc3589x_keypad_of_probe(struct device *dev)
|
||||
{
|
||||
|
|
@ -368,14 +367,6 @@ tc3589x_keypad_of_probe(struct device *dev)
|
|||
|
||||
return plat;
|
||||
}
|
||||
#else
|
||||
static inline const struct tc3589x_keypad_platform_data *
|
||||
tc3589x_keypad_of_probe(struct device *dev)
|
||||
{
|
||||
return ERR_PTR(-ENODEV);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
static int tc3589x_keypad_probe(struct platform_device *pdev)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue