]> 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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 19 Sep 2017 10:07:45 +0000 (12:07 +0200)
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",