projects
/
linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e8f7e3
)
Update ds1307 driver for device-tree support
author
Ryan Coe
<bluemrp9@gmail.com>
Sun, 1 Feb 2015 01:25:49 +0000
(18:25 -0700)
committer
Raspbian kernel package updater
<root@raspbian.org>
Thu, 9 Mar 2017 17:51:32 +0000
(17:51 +0000)
Signed-off-by: Ryan Coe <bluemrp9@gmail.com>
drivers/rtc/rtc-ds1307.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-ds1307.c
b/drivers/rtc/rtc-ds1307.c
index 4e31036ee2596dec93accd26f627c5b95591ae9f..b92044cf03e750afa521a93519500e9d128486f4 100644
(file)
--- a/
drivers/rtc/rtc-ds1307.c
+++ b/
drivers/rtc/rtc-ds1307.c
@@
-1675,6
+1675,14
@@
static int ds1307_remove(struct i2c_client *client)
return 0;
}
+#ifdef CONFIG_OF
+static const struct of_device_id ds1307_of_match[] = {
+ { .compatible = "maxim,ds1307" },
+ { }
+};
+MODULE_DEVICE_TABLE(of, ds1307_of_match);
+#endif
+
static struct i2c_driver ds1307_driver = {
.driver = {
.name = "rtc-ds1307",