diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2014-02-26 22:59:24 +0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-03-19 12:58:31 +0400 |
commit | c5865a5315dcf13fcad50aa8630eed11c9ff95a9 (patch) | |
tree | b531ba0f79579dd49da9b4c6a40abcafb629cc04 /drivers/mfd/pm8921-core.c | |
parent | e7b81fca7dd7cfa9f02722307e1a045f4565fec4 (diff) | |
download | linux-c5865a5315dcf13fcad50aa8630eed11c9ff95a9.tar.xz |
mfd: pm8921: Add DT match table
Allow this driver to probe based on devicetree.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/pm8921-core.c')
-rw-r--r-- | drivers/mfd/pm8921-core.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mfd/pm8921-core.c b/drivers/mfd/pm8921-core.c index e9340bd6d1ab..3aab6ace5eb5 100644 --- a/drivers/mfd/pm8921-core.c +++ b/drivers/mfd/pm8921-core.c @@ -392,6 +392,13 @@ static const struct regmap_config ssbi_regmap_config = { .reg_write = ssbi_reg_write }; +static const struct of_device_id pm8921_id_table[] = { + { .compatible = "qcom,pm8058", }, + { .compatible = "qcom,pm8921", }, + { } +}; +MODULE_DEVICE_TABLE(of, pm8921_id_table); + static int pm8921_probe(struct platform_device *pdev) { struct pm8921 *pmic; @@ -501,6 +508,7 @@ static struct platform_driver pm8921_driver = { .driver = { .name = "pm8921-core", .owner = THIS_MODULE, + .of_match_table = pm8921_id_table, }, }; |