diff options
author | Adam Thomson <Adam.Thomson.Opensource@diasemi.com> | 2014-03-05 09:18:35 -0500 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-03-19 04:58:39 -0400 |
commit | d9a335155c5840796e2a49a9009cc2c8bdb224b2 (patch) | |
tree | faa8dc1acbb247325cd11c6d0fab9265aa6cb861 /drivers/mfd/da9055-i2c.c | |
parent | 392966937d0da3be9fa679b74bd68ae0fc74d91d (diff) |
mfd: da9055: Add DT support for PMIC
Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/da9055-i2c.c')
-rw-r--r-- | drivers/mfd/da9055-i2c.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mfd/da9055-i2c.c b/drivers/mfd/da9055-i2c.c index 8103e4362132..d4d4c165eb95 100644 --- a/drivers/mfd/da9055-i2c.c +++ b/drivers/mfd/da9055-i2c.c | |||
@@ -15,6 +15,8 @@ | |||
15 | #include <linux/device.h> | 15 | #include <linux/device.h> |
16 | #include <linux/i2c.h> | 16 | #include <linux/i2c.h> |
17 | #include <linux/err.h> | 17 | #include <linux/err.h> |
18 | #include <linux/of.h> | ||
19 | #include <linux/of_device.h> | ||
18 | 20 | ||
19 | #include <linux/mfd/da9055/core.h> | 21 | #include <linux/mfd/da9055/core.h> |
20 | 22 | ||
@@ -66,6 +68,11 @@ static struct i2c_device_id da9055_i2c_id[] = { | |||
66 | }; | 68 | }; |
67 | MODULE_DEVICE_TABLE(i2c, da9055_i2c_id); | 69 | MODULE_DEVICE_TABLE(i2c, da9055_i2c_id); |
68 | 70 | ||
71 | static const struct of_device_id da9055_of_match[] = { | ||
72 | { .compatible = "dlg,da9055-pmic", }, | ||
73 | { } | ||
74 | }; | ||
75 | |||
69 | static struct i2c_driver da9055_i2c_driver = { | 76 | static struct i2c_driver da9055_i2c_driver = { |
70 | .probe = da9055_i2c_probe, | 77 | .probe = da9055_i2c_probe, |
71 | .remove = da9055_i2c_remove, | 78 | .remove = da9055_i2c_remove, |
@@ -73,6 +80,7 @@ static struct i2c_driver da9055_i2c_driver = { | |||
73 | .driver = { | 80 | .driver = { |
74 | .name = "da9055-pmic", | 81 | .name = "da9055-pmic", |
75 | .owner = THIS_MODULE, | 82 | .owner = THIS_MODULE, |
83 | .of_match_table = of_match_ptr(da9055_of_match), | ||
76 | }, | 84 | }, |
77 | }; | 85 | }; |
78 | 86 | ||