aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-x1205.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-x1205.c')
-rw-r--r--drivers/rtc/rtc-x1205.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-x1205.c b/drivers/rtc/rtc-x1205.c
index f08f18e4fcdf..ad2ae2f0536e 100644
--- a/drivers/rtc/rtc-x1205.c
+++ b/drivers/rtc/rtc-x1205.c
@@ -673,9 +673,16 @@ static const struct i2c_device_id x1205_id[] = {
673}; 673};
674MODULE_DEVICE_TABLE(i2c, x1205_id); 674MODULE_DEVICE_TABLE(i2c, x1205_id);
675 675
676static const struct of_device_id x1205_dt_ids[] = {
677 { .compatible = "xircom,x1205", },
678 {},
679};
680MODULE_DEVICE_TABLE(of, x1205_dt_ids);
681
676static struct i2c_driver x1205_driver = { 682static struct i2c_driver x1205_driver = {
677 .driver = { 683 .driver = {
678 .name = "rtc-x1205", 684 .name = "rtc-x1205",
685 .of_match_table = x1205_dt_ids,
679 }, 686 },
680 .probe = x1205_probe, 687 .probe = x1205_probe,
681 .remove = x1205_remove, 688 .remove = x1205_remove,