summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTroy Kisky <troy.kisky@boundarydevices.com>2014-04-21 14:32:41 -0700
committerTroy Kisky <troy.kisky@boundarydevices.com>2014-04-24 18:59:57 -0700
commit731f96d038c39af8ea916adba70034a204b0389a (patch)
treed9914af93e03f88b49e6ba17ecafbec55dc42daf /drivers
parentdab54d5113032e8e792a4d2c736395818c58a630 (diff)
rtc-rv4162: add dt support
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rtc/rtc-rv4162.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-rv4162.c b/drivers/rtc/rtc-rv4162.c
index 76e35e8ea1ce..846f7b305f87 100644
--- a/drivers/rtc/rtc-rv4162.c
+++ b/drivers/rtc/rtc-rv4162.c
@@ -10,6 +10,7 @@
* published by the Free Software Foundation.
*/
+#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/rtc.h>
@@ -151,9 +152,15 @@ static struct i2c_device_id rv4162_id[] = {
{ }
};
+static struct of_device_id rv4162_dt_ids[] = {
+ { .compatible = "mcrystal,rv4162" },
+ { /* sentinel */ }
+};
+
static struct i2c_driver rv4162_driver = {
.driver = {
.name = "rtc-rv4162",
+ .of_match_table = of_match_ptr(rv4162_dt_ids),
},
.probe = &rv4162_probe,
.remove = &rv4162_remove,