From 9ba7efcb4c0ee61ef3b135ace3ec7049f76e26cf Mon Sep 17 00:00:00 2001 From: "Vishwanathrao Badarkhe, Manish" Date: Thu, 24 Jan 2013 16:25:17 +0530 Subject: [PATCH] --- yaml --- r: 357597 b: refs/heads/master c: 154c4c7b613049168e2923d096b7c2d100ba8a6a h: refs/heads/master i: 357595: 70986324638b5c90dcd6ea8eee09e08bb59129e7 v: v3 --- [refs] | 2 +- trunk/drivers/mfd/tps6507x.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 490e204211da..6baa4b64174d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 306df798507d8e009a7d4a5e8ce238a3b107de20 +refs/heads/master: 154c4c7b613049168e2923d096b7c2d100ba8a6a diff --git a/trunk/drivers/mfd/tps6507x.c b/trunk/drivers/mfd/tps6507x.c index 409afa23d5dc..5ad4b772b097 100644 --- a/trunk/drivers/mfd/tps6507x.c +++ b/trunk/drivers/mfd/tps6507x.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -116,11 +117,19 @@ static const struct i2c_device_id tps6507x_i2c_id[] = { }; MODULE_DEVICE_TABLE(i2c, tps6507x_i2c_id); +#ifdef CONFIG_OF +static struct of_device_id tps6507x_of_match[] = { + {.compatible = "ti,tps6507x", }, + {}, +}; +MODULE_DEVICE_TABLE(of, tps6507x_of_match); +#endif static struct i2c_driver tps6507x_i2c_driver = { .driver = { .name = "tps6507x", .owner = THIS_MODULE, + .of_match_table = of_match_ptr(tps6507x_of_match), }, .probe = tps6507x_i2c_probe, .remove = tps6507x_i2c_remove,