From: Adam Thomson Date: Wed, 5 Mar 2014 14:18:35 +0000 (+0000) Subject: mfd: da9055: Add DT support for PMIC X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d9a335155c5840796e2a49a9009cc2c8bdb224b2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mfd: da9055: Add DT support for PMIC Signed-off-by: Adam Thomson Signed-off-by: Lee Jones --- 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 @@ #include #include #include +#include +#include #include @@ -66,6 +68,11 @@ static struct i2c_device_id da9055_i2c_id[] = { }; MODULE_DEVICE_TABLE(i2c, da9055_i2c_id); +static const struct of_device_id da9055_of_match[] = { + { .compatible = "dlg,da9055-pmic", }, + { } +}; + static struct i2c_driver da9055_i2c_driver = { .probe = da9055_i2c_probe, .remove = da9055_i2c_remove, @@ -73,6 +80,7 @@ static struct i2c_driver da9055_i2c_driver = { .driver = { .name = "da9055-pmic", .owner = THIS_MODULE, + .of_match_table = of_match_ptr(da9055_of_match), }, };