]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
Update ds1307 driver for device-tree support
authorRyan Coe <bluemrp9@gmail.com>
Sun, 1 Feb 2015 01:25:49 +0000 (18:25 -0700)
committerTim Gardner <tim.gardner@canonical.com>
Fri, 17 Mar 2017 15:26:15 +0000 (09:26 -0600)
Signed-off-by: Ryan Coe <bluemrp9@gmail.com>
drivers/rtc/rtc-ds1307.c

index 4ad97be480430babc3321075f2739114eaad8f04..2ac1c265dc9cea56a5949eb537949a1f8853edc5 100644 (file)
@@ -1708,6 +1708,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",