diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2014-01-23 13:43:28 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-03-19 08:58:05 +0000 |
commit | a381b13e2aa064122325de9deaec51d6e4765ad7 (patch) | |
tree | 88ae5275f6b737eafc4dbce1834b19ba8729a50d /drivers/mfd/aat2870-core.c | |
parent | 47ec66a17cca571eb7038b7835dff7cbd5851b90 (diff) |
mfd: tc3589x: Reform device tree probing
This changes the following mechanisms in the TC3589x device tree
probing path:
- Use the .of_match_table in struct device_driver to match the
device in the device tree.
- Add matches for the proper compatible strings "toshiba,..."
and all sub-variants, just as is done for the .id matches.
- Move over all the allocation of platform data etc to the
tc3589x_of_probe() function and follow the pattern of passing
a platform data pointer back, or an error pointer on error,
as found in the STMPE driver.
- Match the new (proper) compatible strings for the GPIO and
keypad MFD cells.
- Use of_device_is_compatible() rather than just !strcmp()
to discover which cells to instantiate.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/aat2870-core.c')
0 files changed, 0 insertions, 0 deletions