hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/rtc/rtc-x1205.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * An i2c driver for the Xicor/Intersil X1205 RTC
34 * Copyright 2004 Karen Spearel
....@@ -11,10 +12,6 @@
1112 *
1213 * Information and datasheet:
1314 * http://www.intersil.com/cda/deviceinfo/0,1477,X1205,00.html
14
- *
15
- * This program is free software; you can redistribute it and/or modify
16
- * it under the terms of the GNU General Public License version 2 as
17
- * published by the Free Software Foundation.
1815 */
1916
2017 #include <linux/i2c.h>
....@@ -673,9 +670,16 @@
673670 };
674671 MODULE_DEVICE_TABLE(i2c, x1205_id);
675672
673
+static const struct of_device_id x1205_dt_ids[] = {
674
+ { .compatible = "xircom,x1205", },
675
+ {},
676
+};
677
+MODULE_DEVICE_TABLE(of, x1205_dt_ids);
678
+
676679 static struct i2c_driver x1205_driver = {
677680 .driver = {
678681 .name = "rtc-x1205",
682
+ .of_match_table = x1205_dt_ids,
679683 },
680684 .probe = x1205_probe,
681685 .remove = x1205_remove,